Closed
Bug 1414154
Opened 7 years ago
Closed 7 years ago
Store the font smoothing background color in ScaledFontMac instead of using GlyphRenderingOptions
Categories
(Core :: Graphics, enhancement)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(3 files)
This was Lee's idea. It simplifies the code somewhat and makes it easier to pass the color to WebRender.
At the moment, the color makes the following journey:
nsStyleUserInterface::mFontSmoothingBackgroundColor -> gfxContext::fontSmoothingBackgroundColor -> TextRunDrawParams::fontSmoothingBGColor -> GlyphRenderingOptionsCG::mFontSmoothingBackgroundColor.
We can make it take this journey instead:
nsStyleFont::mFont.nsFont::fontSmoothingBackgroundColor -> gfxFontStyle::fontSmoothingBackgroundColor -> gfxMacFont::mFontSmoothingBackgroundColor -> ScaledFontMac::mFontSmoothingBackgroundColor
It's the same number of steps, but the locations make more sense, and this allows us to get rid of GlyphRenderingOptions entirely because Mac was the only platform that used that feature.
The nsStyleUserInterface -> nsStyleFont / nsFont change is being done in bug 1414147.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8924825 [details]
Bug 1414154 - Store the font smoothing background color on the ScaledFontMac.
https://reviewboard.mozilla.org/r/196066/#review201264
Attachment #8924825 -
Flags: review?(lsalzman) → review+
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8924826 [details]
Bug 1414154 - Remove GlyphRenderingOptions.
https://reviewboard.mozilla.org/r/196068/#review201266
Attachment #8924826 -
Flags: review?(lsalzman) → review+
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8924827 [details]
Bug 1414154 - Remove gfxContext::Set/GetFontSmoothingBackgroundColor and TextRunDrawParams::fontSmoothingBGColor.
https://reviewboard.mozilla.org/r/196070/#review201268
Attachment #8924827 -
Flags: review?(lsalzman) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/d075d05bea93
Store the font smoothing background color on the ScaledFontMac. r=lsalzman
https://hg.mozilla.org/integration/autoland/rev/b01be3d4095f
Remove GlyphRenderingOptions. r=lsalzman
https://hg.mozilla.org/integration/autoland/rev/71651421a36f
Remove gfxContext::Set/GetFontSmoothingBackgroundColor and TextRunDrawParams::fontSmoothingBGColor. r=lsalzman
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d075d05bea93
https://hg.mozilla.org/mozilla-central/rev/b01be3d4095f
https://hg.mozilla.org/mozilla-central/rev/71651421a36f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•