gecko-dev/layout/mathml
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
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
2020-03-09 14:16:17 +00:00
..
crashtests
tests Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop 2020-03-07 10:09:44 +00:00
jar.mn
mathfont.properties
mathfontSTIXGeneral.properties
mathfontUnicode.properties
mathml.css
moz.build
nsIMathMLFrame.h
nsMathMLAtoms.h
nsMathMLChar.cpp Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
nsMathMLChar.h
nsMathMLContainerFrame.cpp Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
nsMathMLContainerFrame.h Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLFrame.cpp Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
nsMathMLFrame.h
nsMathMLmactionFrame.cpp Bug 1614208 - Stop including AccessibleCaretEventHub and PresShell.h from Selection.h. r=TYLin 2020-02-11 01:22:29 +00:00
nsMathMLmactionFrame.h
nsMathMLmencloseFrame.cpp Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
nsMathMLmencloseFrame.h
nsMathMLmfencedFrame.cpp Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLmfencedFrame.h
nsMathMLmfracFrame.cpp Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
nsMathMLmfracFrame.h Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLmmultiscriptsFrame.cpp
nsMathMLmmultiscriptsFrame.h
nsMathMLmoFrame.cpp Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLmoFrame.h
nsMathMLmpaddedFrame.cpp Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLmpaddedFrame.h
nsMathMLmrootFrame.cpp Bug 1611181 - Make direction use an enum class. r=boris 2020-01-24 11:46:14 +00:00
nsMathMLmrootFrame.h
nsMathMLmrowFrame.cpp
nsMathMLmrowFrame.h
nsMathMLmspaceFrame.cpp
nsMathMLmspaceFrame.h
nsMathMLmsqrtFrame.cpp
nsMathMLmsqrtFrame.h
nsMathMLmtableFrame.cpp Bug 1617472 - Use enums for text-align / text-align-last. r=jfkthame 2020-02-24 13:32:57 +00:00
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