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)

enhancement
Not set
normal

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.
Blocks: 1414157
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+
Attachment #8924826 - Flags: review?(lsalzman) → 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+
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: