[Win] Unreviewed build fix after r178124.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jan 2015 21:29:11 +0000 (21:29 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jan 2015 21:29:11 +0000 (21:29 +0000)
Remove uses of the removed applicationChromeMode method.

* rendering/RenderThemeWin.cpp:
(WebCore::RenderThemeWin::getThemeData):
(WebCore::RenderThemeWin::paintMenuList):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeWin.cpp

index 4ff39b2..e04d7e9 100644 (file)
@@ -1,3 +1,13 @@
+2015-01-08  Brent Fulgham  <bfulgham@apple.com>
+
+        [Win] Unreviewed build fix after r178124.
+
+        Remove uses of the removed applicationChromeMode method.
+
+        * rendering/RenderThemeWin.cpp:
+        (WebCore::RenderThemeWin::getThemeData):
+        (WebCore::RenderThemeWin::paintMenuList):
+
 2015-01-08  Anders Carlsson  <andersca@apple.com>
 
         Remove AbstractSQLTransactionBackend
index d5c4d58..23db684 100644 (file)
@@ -617,9 +617,7 @@ ThemeData RenderThemeWin::getThemeData(const RenderObject& o, ControlSubPart sub
         case MenulistButtonPart: {
             const bool isVistaOrLater = (windowsVersion() >= WindowsVista);
             result.m_part = isVistaOrLater ? CP_DROPDOWNBUTTONRIGHT : CP_DROPDOWNBUTTON;
-            if (isVistaOrLater && o.frame().settings().applicationChromeMode()) {
-                // The "readonly" look we use in application chrome mode
-                // only uses a "normal" look for the drop down button.
+            if (isVistaOrLater) {
                 result.m_state = TS_NORMAL;
             } else
                 result.m_state = determineState(o);
@@ -782,10 +780,7 @@ bool RenderThemeWin::paintMenuList(const RenderObject& renderer, const PaintInfo
     int part;
     if (haveTheme && (windowsVersion() >= WindowsVista)) {
         theme = menuListTheme();
-        if (renderer.frame().settings().applicationChromeMode())
-            part = CP_READONLY;
-        else
-            part = CP_BORDER;
+        part = CP_READONLY;
     } else {
         theme = textFieldTheme();
         part = TFP_TEXTFIELD;