Rearrange some code to prepare for cross-process shared font list
Categories
(Core :: Layout: Text and Fonts, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(8 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
In preparation for the shared-font-list being implemented in bug 1514869, it's helpful to do some shuffling-around of existing code, avoiding some #includes that end up causing conflicts (especially with windows headers) when they get pulled in by generated bindings code, and moving some utility functions to places where they'll be more easily usable by new code.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Depends on D22904
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D22908
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D22913
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D22918
Assignee | ||
Comment 5•5 years ago
|
||
This will allow upcoming shared font-list to use the same helpers as the existing code.
Depends on D22922
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D22926
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D22930
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D22934
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•5 years ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:jfkthame, could you have a look please?
Comment 10•5 years ago
|
||
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2d6b3268f45c patch 1 - Use fully-qualified name for mozilla::ipc::FileDescriptor in AutoMemMap.h, rather than depending on a 'using' declaration. r=jwatt https://hg.mozilla.org/integration/autoland/rev/a4e2c4690d8d patch 2 - Move the Orientation enum from gfxFont to nsFontMetrics to enable some #include-elimination, in particular to avoid including gfxTextRun.h in nsFontMetrics.h. r=jwatt https://hg.mozilla.org/integration/autoland/rev/075921737c95 patch 3 - Avoid including gfxTextRun.h in the CanvasRenderingContext2d.h header. r=jwatt https://hg.mozilla.org/integration/autoland/rev/cbf40b5419bd patch 4 - Include chromium-config.mozbuild in the moz.build for a bunch more directories, so that IPC-related headers are available. r=jwatt https://hg.mozilla.org/integration/autoland/rev/3de67e6f53f2 patch 5 - Move the helper functions that measure the 'distance' between values of font properties (weight, stretch, style) to gfxFontUtils.h. r=jwatt https://hg.mozilla.org/integration/autoland/rev/cbf5d7dfe34a patch 6 - Consistently use the gfxPlatformFontList::PrefFontList type instead of repeatedly spelling out the array declaration. r=jwatt https://hg.mozilla.org/integration/autoland/rev/04c04203c03f patch 7 - Create a FontFamily type that wraps either a gfxFontFamily pointer or a mozilla::fontlist::Family pointer (to be used by the shared font list), and use this in various places where we need to pass families around. r=jwatt https://hg.mozilla.org/integration/autoland/rev/545b89e876f2 patch 8 - Move the ReadOtherFamilyNamesForFace helper to gfxFontUtils, for use by shared fontlist code as well as by old gfxFontFamily. r=jwatt
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2d6b3268f45c
https://hg.mozilla.org/mozilla-central/rev/a4e2c4690d8d
https://hg.mozilla.org/mozilla-central/rev/075921737c95
https://hg.mozilla.org/mozilla-central/rev/cbf40b5419bd
https://hg.mozilla.org/mozilla-central/rev/3de67e6f53f2
https://hg.mozilla.org/mozilla-central/rev/cbf5d7dfe34a
https://hg.mozilla.org/mozilla-central/rev/04c04203c03f
https://hg.mozilla.org/mozilla-central/rev/545b89e876f2
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Description
•