Holger Hans Peter Freyther <holger.freyther@trolltech.com>
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 11:15:51 +0000 (11:15 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 11:15:51 +0000 (11:15 +0000)
* Follow the windows render theme when determining whether to style
listboxes or not.

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

WebCore/ChangeLog
WebCore/platform/qt/RenderThemeQt.cpp

index 755e01b..40543a5 100644 (file)
@@ -2,6 +2,16 @@
 
         Reviewed by Simon.
 
+        * Follow the windows render theme when determining whether to style
+        listboxes or not.
+
+        * platform/qt/RenderThemeQt.cpp:
+        (WebCore::RenderThemeQt::isControlStyled):
+
+2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
+
+        Reviewed by Simon.
+
         * Try to bring the notImplemented implementations closer together. This will
         print each unimplemted method name only once.
 
index d17d6b5..e23f8d1 100644 (file)
@@ -120,7 +120,7 @@ void RenderThemeQt::adjustRepaintRect(const RenderObject* o, IntRect& r)
 bool RenderThemeQt::isControlStyled(const RenderStyle* style, const BorderData& border,
                                      const BackgroundLayer& background, const Color& backgroundColor) const
 {
-    if (style->appearance() == TextFieldAppearance || style->appearance() == TextAreaAppearance)
+    if (style->appearance() == TextFieldAppearance || style->appearance() == TextAreaAppearance || style->appearance() == ListboxAppearance)
         return style->border() != border;
 
     return RenderTheme::isControlStyled(style, border, background, backgroundColor);