+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
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;
}
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;
}