gecko-dev/layout/tables
Emilio Cobos Álvarez 390c6943fe Bug 1702676 - Change public LookAndFeel API to accept a color scheme. r=mstange
This shouldn't change behavior, but is the biggest cross-platform part
of the change so I'd like to get it landed sooner rather than later.

The two calls like:

  GetColor(ColorID::TextSelectBackground, color);
  if (color == 0x000000) {
    mColorTextSelectForeground = NS_RGB(0xff, 0xff, 0xff);
  } else {
    mColorTextSelectForeground = NS_DONT_CHANGE_COLOR;
  }

that I'm removing are just broken. They were calling the version of
GetColor the function that took a default value when the color wasn't
available, not the version of the color with the outparam.

To prevent such mistakes, add two signatures, GetColor(), returning a
Maybe<nscolor> and Color(), returning a color with a fallback.

Differential Revision: https://phabricator.services.mozilla.com/D110651
2021-04-02 12:22:14 +00:00
..
crashtests
reftests
test
BasicTableLayoutStrategy.cpp
BasicTableLayoutStrategy.h
celldata.h
FixedTableLayoutStrategy.cpp
FixedTableLayoutStrategy.h
moz.build
nsCellMap.cpp
nsCellMap.h
nsITableCellLayout.h
nsITableLayoutStrategy.h
nsTableCellFrame.cpp Bug 1702676 - Change public LookAndFeel API to accept a color scheme. r=mstange 2021-04-02 12:22:14 +00:00
nsTableCellFrame.h
nsTableColFrame.cpp
nsTableColFrame.h
nsTableColGroupFrame.cpp
nsTableColGroupFrame.h
nsTableFrame.cpp Bug 708901 - Migrate to nsTHashSet in layout. r=emilio 2021-03-24 17:56:46 +00:00
nsTableFrame.h
nsTableRowFrame.cpp
nsTableRowFrame.h
nsTableRowGroupFrame.cpp
nsTableRowGroupFrame.h
nsTableWrapperFrame.cpp
nsTableWrapperFrame.h
SpanningCellSorter.cpp
SpanningCellSorter.h
TableArea.h