⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282237 in webkit


Ignore:
Timestamp:
Sep 9, 2021, 1:05:16 PM (5 years ago)
Author:
Fujii Hironori
Message:

[Win] REGRESSION(r282123): some layout tests are failing because the bgcolor of text input forms are unexpectedly black
​https://bugs.webkit.org/show_bug.cgi?id=230077

Reviewed by Don Olmstead.

r282123 enabled HAVE_OS_DARK_MODE_SUPPORT for WinCairo. It uses
'-webkit-control-background' in the user-agent style sheet.
RenderThemeWin::systemColor always returned black for it. Because
WinCairo doesn't support dark mode yet, it is always light mode.
So, '-webkit-control-background' should be white at the moment.

  • rendering/RenderThemeWin.cpp:

(WebCore::RenderThemeWin::systemColor const): Return white for CSSValueWebkitControlBackground.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r282235 r282237  
     12021-09-09  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] REGRESSION(r282123): some layout tests are failing because the bgcolor of text input forms are unexpectedly black
     4        https://bugs.webkit.org/show_bug.cgi?id=230077
     5
     6        Reviewed by Don Olmstead.
     7
     8        r282123 enabled HAVE_OS_DARK_MODE_SUPPORT for WinCairo. It uses
     9        '-webkit-control-background' in the user-agent style sheet.
     10        RenderThemeWin::systemColor always returned black for it. Because
     11        WinCairo doesn't support dark mode yet, it is always light mode.
     12        So, '-webkit-control-background' should be white at the moment.
     13
     14        * rendering/RenderThemeWin.cpp:
     15        (WebCore::RenderThemeWin::systemColor const): Return white for CSSValueWebkitControlBackground.
     16
    1172021-09-09  Sihui Liu  <sihui_liu@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderThemeWin.cpp

    r278618 r282237  
    10051005Color RenderThemeWin::systemColor(CSSValueID cssValueId, OptionSet<StyleColor::Options> options) const
    10061006{
     1007#if HAVE(OS_DARK_MODE_SUPPORT)
     1008    switch (cssValueId) {
     1009    case CSSValueWebkitControlBackground:
     1010        // FIXME: Dark mode isn't supported yet. https://webkit.org/b/230032
     1011        return Color::white;
     1012    }
     1013#endif
    10071014    int sysColorIndex = cssValueIdToSysColorIndex(cssValueId);
    10081015    if (sysColorIndex == -1)
Note: See TracChangeset for help on using the changeset viewer.