Changeset 245368 in webkit
- Timestamp:
- May 15, 2019 4:50:34 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245366 r245368 1 2019-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 1 17 2019-05-15 Devin Rousso <drousso@apple.com> 2 18 -
trunk/Source/WebCore/dom/Document.cpp
r245174 r245368 6892 6892 bool Document::useSystemAppearance() const 6893 6893 { 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; 6898 6897 } 6899 6898 … … 6933 6932 #endif 6934 6933 6934 return false; 6935 } 6936 6937 bool Document::useInactiveAppearance() const 6938 { 6939 if (auto* documentPage = page()) 6940 return documentPage->useInactiveAppearance(); 6935 6941 return false; 6936 6942 } … … 6943 6949 if (useDarkAppearance(style)) 6944 6950 options.add(StyleColor::Options::UseDarkAppearance); 6951 if (useInactiveAppearance()) 6952 options.add(StyleColor::Options::UseInactiveAppearance); 6945 6953 return options; 6946 6954 } -
trunk/Source/WebCore/dom/Document.h
r245025 r245368 568 568 569 569 WEBCORE_EXPORT bool useSystemAppearance() const; 570 WEBCORE_EXPORT bool useInactiveAppearance() const; 570 571 WEBCORE_EXPORT bool useDarkAppearance(const RenderStyle*) const; 571 572
Note: See TracChangeset
for help on using the changeset viewer.