gecko-dev/layout/tables
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 Bug 1607045 - Look in all table continuations for the original header/footer of a repeated header/footer. r=TYLin 2020-01-23 15:51:22 +00:00
reftests Bug 1017137 - Don't report Complete status in table-row-group fragmentation if it still has more rows to flow after filling the availble size. r=TYLin 2019-12-02 16:40:47 +00:00
test Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop 2020-03-07 10:09:44 +00:00
BasicTableLayoutStrategy.cpp Bug 1592623 - Removed an useless namespace alias r=sylvestre 2019-11-11 21:33:40 +00:00
BasicTableLayoutStrategy.h
FixedTableLayoutStrategy.cpp Bug 1588017 - Clean up nsIFrame::IntrinsicISizeOffsetData r=TYLin,dholbert 2019-11-05 18:52:03 +00:00
FixedTableLayoutStrategy.h
SpanningCellSorter.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
SpanningCellSorter.h
TableArea.h
celldata.h
moz.build
nsCellMap.cpp Bug 1619041 - Avoid unnecessary operations in nsCellMap::HasMoreThanOneCell. r=dbaron 2020-02-29 19:42:16 +00:00
nsCellMap.h
nsITableCellLayout.h
nsITableLayoutStrategy.h
nsTableCellFrame.cpp Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
nsTableCellFrame.h Bug 1591219 - [css-align] Synthesize a baseline from the content edges for empty table cells. r=dholbert 2019-11-12 15:31:57 +00:00
nsTableColFrame.cpp Bug 1601856 : convert NS_STYLE_VISIBILITY_* to an enum class in nsStyleConsts.h r=emilio 2019-12-13 05:34:38 +00:00
nsTableColFrame.h
nsTableColGroupFrame.cpp Bug 1601856 : convert NS_STYLE_VISIBILITY_* to an enum class in nsStyleConsts.h r=emilio 2019-12-13 05:34:38 +00:00
nsTableColGroupFrame.h
nsTableFrame.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
nsTableFrame.h Bug 1607045 - Look in all table continuations for the original header/footer of a repeated header/footer. r=TYLin 2020-01-23 15:51:22 +00:00
nsTableRowFrame.cpp Bug 1613198: Move inline impls for nsIFrame::GetNormalPosition and GetLogicalNormalPosition into nsIFrameInlines.h. r=jfkthame 2020-02-05 09:52:35 +00:00
nsTableRowFrame.h
nsTableRowGroupFrame.cpp Bug 1613349 - Rename nsIFrame::DeleteProperty to RemoveProperty. r=dholbert 2020-02-06 16:06:49 +00:00
nsTableRowGroupFrame.h
nsTableWrapperFrame.cpp Bug 1492315 - Subtract table grid item margins correctly. r=mats 2020-02-24 21:56:02 +00:00
nsTableWrapperFrame.h