gecko-dev/layout/forms
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 Bug 1690166 - Don't report BreakBefore reflow status if the <fieldset> is an abs/fixed positioned out-of-flow. r=TYLin 2021-02-03 21:21:40 +00:00
test Bug 1698606 - Ensure baseline for text and date controls matches. r=jwatt 2021-03-31 12:21:17 +00:00
moz.build Bug 1683748 - Support Grid/Flex/Table/Column layout for the rendered legend of a fieldset. r=emilio 2021-01-30 13:47:10 +00:00
nsButtonFrameRenderer.cpp Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange 2021-02-23 10:49:37 +00:00
nsButtonFrameRenderer.h Bug 1630704 - Part 28: Remove nsFrame r=emilio 2020-07-06 22:38:11 +00:00
nsCheckboxRadioFrame.cpp Bug 1693688 - Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange 2021-02-20 00:13:10 +00:00
nsCheckboxRadioFrame.h Bug 1693688 - Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange 2021-02-20 00:13:10 +00:00
nsColorControlFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsColorControlFrame.h
nsComboboxControlFrame.cpp Bug 1686728 - Make nsCheckboxRadioFrame::GetUsableScreenRect a static function for its only consumer. r=layout-reviewers,TYLin 2021-01-29 20:47:59 +00:00
nsComboboxControlFrame.h Bug 1678334 - Make GetScrollTargetFrame() const. r=tnikkel 2020-11-19 22:46:33 +00:00
nsDateTimeControlFrame.cpp Bug 1698606 - Remove stray printf. DONTBUILD 2021-03-31 21:53:09 +02:00
nsDateTimeControlFrame.h Bug 1698606 - Ensure baseline for text and date controls matches. r=jwatt 2021-03-31 12:21:17 +00:00
nsFieldSetFrame.cpp Bug 1694459 - Deal with 'display:contents' style changes on <fieldset> descendants better where it affects which <legend> is the rendered legend. r=emilio 2021-03-01 03:42:41 +00:00
nsFieldSetFrame.h Bug 1694459 - Deal with 'display:contents' style changes on <fieldset> descendants better where it affects which <legend> is the rendered legend. r=emilio 2021-03-01 03:42:41 +00:00
nsFileControlFrame.cpp Bug 1679682 - Deal with the ::file-selector-button pseudo having no frame. r=emilio 2020-11-29 17:18:32 +00:00
nsFileControlFrame.h
nsGfxButtonControlFrame.cpp Bug 1630704 - Part 27: Remove nsFrame from inheritance chain r=emilio 2020-07-06 22:29:42 +00:00
nsGfxButtonControlFrame.h
nsHTMLButtonControlFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsHTMLButtonControlFrame.h Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsIFormControlFrame.h
nsISelectControlFrame.h
nsITextControlFrame.h
nsImageControlFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsListControlFrame.cpp Bug 1702676 - Change public LookAndFeel API to accept a color scheme. r=mstange 2021-04-02 12:22:14 +00:00
nsListControlFrame.h
nsMeterFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsMeterFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsNumberControlFrame.cpp Bug 1698821 - Remove dead GetNumberControlFrameForTextField. r=dholbert 2021-03-16 21:53:20 +00:00
nsNumberControlFrame.h Bug 1698821 - Remove dead GetNumberControlFrameForTextField. r=dholbert 2021-03-16 21:53:20 +00:00
nsProgressFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsProgressFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsRangeFrame.cpp Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio 2021-01-29 20:48:02 +00:00
nsRangeFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsSearchControlFrame.cpp Bug 1698043 - Simplify <input type=number/search> layout to fix this bug and make ::-moz-complex-control-wrapper unnecessary. r=dholbert 2021-03-14 07:53:13 +00:00
nsSearchControlFrame.h Bug 1698043 - Simplify <input type=number/search> layout to fix this bug and make ::-moz-complex-control-wrapper unnecessary. r=dholbert 2021-03-14 07:53:13 +00:00
nsSelectsAreaFrame.cpp Bug 1637130 - Rename visual overflow to ink overflow. r=dbaron 2020-07-20 20:17:36 +00:00
nsSelectsAreaFrame.h
nsTextControlFrame.cpp Bug 1698606 - Ensure baseline for text and date controls matches. r=jwatt 2021-03-31 12:21:17 +00:00
nsTextControlFrame.h Bug 1698606 - Ensure baseline for text and date controls matches. r=jwatt 2021-03-31 12:21:17 +00:00