Ensure default appearance for selection form control
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 23:20:30 +0000 (23:20 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 23:20:30 +0000 (23:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183482
<rdar://problem/38274894>

Reviewed by Tim Horton.

The appearance for selection form controls was not set to default.

Not currently testable, will add tests in a later patch.

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::platformInactiveListBoxSelectionBackgroundColor const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229438 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeMac.mm

index 62a2401..5261cc6 100644 (file)
@@ -1,3 +1,18 @@
+2018-03-08  Megan Gardner  <megan_gardner@apple.com>
+
+        Ensure default appearance for selection form control
+        https://bugs.webkit.org/show_bug.cgi?id=183482
+        <rdar://problem/38274894>
+
+        Reviewed by Tim Horton.
+  
+        The appearance for selection form controls was not set to default.
+
+        Not currently testable, will add tests in a later patch.
+
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::platformInactiveListBoxSelectionBackgroundColor const):
+
 2018-03-08  Per Arne Vollan  <pvollan@apple.com>
 
         [Win] Compile error: pal/ExportMacros.h not found.
index f4e7fd6..f480bce 100644 (file)
@@ -337,6 +337,7 @@ Color RenderThemeMac::platformFocusRingColor() const
 
 Color RenderThemeMac::platformInactiveListBoxSelectionBackgroundColor() const
 {
+    LocalDefaultSystemAppearance localAppearance;
     return platformInactiveSelectionBackgroundColor();
 }