[Webkit-unassigned] [Bug 14576] New: Patch to fix render theme for text fields in RenderThemeQt

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 10 12:28:24 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14576

           Summary: Patch to fix render theme for text fields in
                    RenderThemeQt
           Product: WebKit
           Version: 419.x
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: amc82 at cam.ac.uk


Index: WebCore/ChangeLog
===================================================================
--- WebCore/ChangeLog   (revision 24155)
+++ WebCore/ChangeLog   (working copy)
@@ -1,3 +1,12 @@
+2007-07-10  Andrea Cavalli  <amc82 at cam.ac.uk>
+
+        Reviewed by NOBODY (OOPS!).
+
+       Fixed render theme for text field.
+       
+        * platform/qt/RenderThemeQt.cpp:
+        (WebCore::RenderThemeQt::paintTextField):
+
 2007-07-10  Adam Treat  <adam at staikos.net>

         Reviewed by George Staikos.
Index: WebCore/platform/qt/RenderThemeQt.cpp
===================================================================
--- WebCore/platform/qt/RenderThemeQt.cpp       (revision 24155)
+++ WebCore/platform/qt/RenderThemeQt.cpp       (working copy)
@@ -258,8 +258,12 @@ bool RenderThemeQt::paintTextField(Rende
         return true;

     QStyleOptionFrameV2 panel;
+    
     panel.initFrom(widget);
     panel.rect = r;
+    panel.state |= QStyle::State_Sunken;
+    panel.features = QStyleOptionFrameV2::None;
+
     // Get the correct theme data for a button
     EAppearance appearance = applyTheme(panel, o);
     Q_ASSERT(appearance == TextFieldAppearance);
@@ -267,7 +271,7 @@ bool RenderThemeQt::paintTextField(Rende
     // Now paint the text field.
     style->drawPrimitive(QStyle::PE_PanelLineEdit, &panel, painter, widget);
     style->drawPrimitive(QStyle::PE_FrameLineEdit, &panel, painter, widget);
-
+      
     return false;
 }


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list