Don't ask SafariTheme to draw focus rings around text controls
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2007 17:52:13 +0000 (17:52 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2007 17:52:13 +0000 (17:52 +0000)
        We do this ourselves.

        Reviewed by Oliver.

        * rendering/RenderThemeSafari.cpp:

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

WebCore/ChangeLog
WebCore/rendering/RenderThemeSafari.cpp

index 6316d1f1a856e26d973963732ae758878c336a10..0e1211f5488ed86bc4efc3f2b1bf5c52e75a38c1 100644 (file)
@@ -1,3 +1,13 @@
+2007-09-12  Adam Roben  <aroben@apple.com>
+
+        Don't ask SafariTheme to draw focus rings around text controls
+
+        We do this ourselves.
+
+        Reviewed by Oliver.
+
+        * rendering/RenderThemeSafari.cpp:
+
 2007-09-11  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Darin
index 89b64ee2a797a287d4f07dc2d6c44959fb8f768d..611ee9f697da2ca1cde7a75aef9eb599c8657499 100644 (file)
@@ -539,7 +539,7 @@ bool RenderThemeSafari::paintButton(RenderObject* o, const RenderObject::PaintIn
 
 bool RenderThemeSafari::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r)
 {
-    paintThemePart(TextFieldPart, paintInfo.context->platformContext(), r, (NSControlSize)0, determineState(o));
+    paintThemePart(TextFieldPart, paintInfo.context->platformContext(), r, (NSControlSize)0, determineState(o) & ~FocusedState);
     return false;
 }
 
@@ -549,7 +549,7 @@ void RenderThemeSafari::adjustTextFieldStyle(CSSStyleSelector*, RenderStyle*, El
 
 bool RenderThemeSafari::paintTextArea(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r)
 {
-    paintThemePart(TextAreaPart, paintInfo.context->platformContext(), r, (NSControlSize)0, determineState(o));  
+    paintThemePart(TextAreaPart, paintInfo.context->platformContext(), r, (NSControlSize)0, determineState(o) & ~FocusedState);
     return false;
 }