mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
91b071ed14
gfx::Color is currently misused in many places. The DrawTargets expect the color space to be in device space, e.g. what we are actually going to draw using. Everything sitting above generally deals with sRGB, as specified in CSS. Sometimes we missed the conversion from sRGB to device space when issuing draw calls, and similarly sometimes we converted the color to device space twice. This patch splits the type in two. sRGBColor and DeviceColor now represent sRGB and device color spaces respectively. DrawTarget only accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via the ToDeviceColor helper API. The reftests now pass with color management enabled for everything (e.g. CSS) instead of just tagged raster images. There will be a follow up patch to enable color management everywhere by default on all supported platforms. Differential Revision: https://phabricator.services.mozilla.com/D64771 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
tests | ||
jar.mn | ||
mathfont.properties | ||
mathfontSTIXGeneral.properties | ||
mathfontUnicode.properties | ||
mathml.css | ||
moz.build | ||
nsIMathMLFrame.h | ||
nsMathMLAtoms.h | ||
nsMathMLChar.cpp | ||
nsMathMLChar.h | ||
nsMathMLContainerFrame.cpp | ||
nsMathMLContainerFrame.h | ||
nsMathMLFrame.cpp | ||
nsMathMLFrame.h | ||
nsMathMLmactionFrame.cpp | ||
nsMathMLmactionFrame.h | ||
nsMathMLmencloseFrame.cpp | ||
nsMathMLmencloseFrame.h | ||
nsMathMLmfencedFrame.cpp | ||
nsMathMLmfencedFrame.h | ||
nsMathMLmfracFrame.cpp | ||
nsMathMLmfracFrame.h | ||
nsMathMLmmultiscriptsFrame.cpp | ||
nsMathMLmmultiscriptsFrame.h | ||
nsMathMLmoFrame.cpp | ||
nsMathMLmoFrame.h | ||
nsMathMLmpaddedFrame.cpp | ||
nsMathMLmpaddedFrame.h | ||
nsMathMLmrootFrame.cpp | ||
nsMathMLmrootFrame.h | ||
nsMathMLmrowFrame.cpp | ||
nsMathMLmrowFrame.h | ||
nsMathMLmspaceFrame.cpp | ||
nsMathMLmspaceFrame.h | ||
nsMathMLmsqrtFrame.cpp | ||
nsMathMLmsqrtFrame.h | ||
nsMathMLmtableFrame.cpp | ||
nsMathMLmtableFrame.h | ||
nsMathMLmunderoverFrame.cpp | ||
nsMathMLmunderoverFrame.h | ||
nsMathMLOperators.cpp | ||
nsMathMLOperators.h | ||
nsMathMLParts.h | ||
nsMathMLSelectedFrame.cpp | ||
nsMathMLSelectedFrame.h | ||
nsMathMLsemanticsFrame.cpp | ||
nsMathMLsemanticsFrame.h | ||
nsMathMLTokenFrame.cpp | ||
nsMathMLTokenFrame.h | ||
operatorDictionary.xsl | ||
updateOperatorDictionary.pl |