Changeset 245368 in webkit


Ignore:
Timestamp:
May 15, 2019 4:50:34 PM (5 years ago)
Author:
timothy@apple.com
Message:

REGRESSION (r245072): Missing code in Document::styleColorOptions to propagate StyleColor::Options::UseInactiveAppearance
https://bugs.webkit.org/show_bug.cgi?id=197930
rdar://problem/49833954

Reviewed by Wenson Hsieh and Megan Gardner.

Add some code that was missing from Document in my original patch for r245072.

  • dom/Document.cpp:

(WebCore::Document::useSystemAppearance const): Drive-by fix code style.
(WebCore::Document::useInactiveAppearance const): Added.
(WebCore::Document::styleColorOptions const): Add StyleColor::Options::UseInactiveAppearance.

  • dom/Document.h: Added useInactiveAppearance().
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245366 r245368  
     12019-05-15  Timothy Hatcher  <timothy@apple.com>
     2
     3        REGRESSION (r245072): Missing code in Document::styleColorOptions to propagate StyleColor::Options::UseInactiveAppearance
     4        https://bugs.webkit.org/show_bug.cgi?id=197930
     5        rdar://problem/49833954
     6
     7        Reviewed by Wenson Hsieh and Megan Gardner.
     8
     9        Add some code that was missing from Document in my original patch for r245072.
     10
     11        * dom/Document.cpp:
     12        (WebCore::Document::useSystemAppearance const): Drive-by fix code style.
     13        (WebCore::Document::useInactiveAppearance const): Added.
     14        (WebCore::Document::styleColorOptions const): Add StyleColor::Options::UseInactiveAppearance.
     15        * dom/Document.h: Added useInactiveAppearance().
     16
    1172019-05-15  Devin Rousso  <drousso@apple.com>
    218
  • trunk/Source/WebCore/dom/Document.cpp

    r245174 r245368  
    68926892bool Document::useSystemAppearance() const
    68936893{
    6894     bool useSystemAppearance = false;
    6895     if (Page* documentPage = page())
    6896         useSystemAppearance = documentPage->useSystemAppearance();
    6897     return useSystemAppearance;
     6894    if (auto* documentPage = page())
     6895        return documentPage->useSystemAppearance();
     6896    return false;
    68986897}
    68996898
     
    69336932#endif
    69346933
     6934    return false;
     6935}
     6936
     6937bool Document::useInactiveAppearance() const
     6938{
     6939    if (auto* documentPage = page())
     6940        return documentPage->useInactiveAppearance();
    69356941    return false;
    69366942}
     
    69436949    if (useDarkAppearance(style))
    69446950        options.add(StyleColor::Options::UseDarkAppearance);
     6951    if (useInactiveAppearance())
     6952        options.add(StyleColor::Options::UseInactiveAppearance);
    69456953    return options;
    69466954}
  • trunk/Source/WebCore/dom/Document.h

    r245025 r245368  
    568568
    569569    WEBCORE_EXPORT bool useSystemAppearance() const;
     570    WEBCORE_EXPORT bool useInactiveAppearance() const;
    570571    WEBCORE_EXPORT bool useDarkAppearance(const RenderStyle*) const;
    571572
Note: See TracChangeset for help on using the changeset viewer.