Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index e29bce59605df5a9c0af1a0284f8a8e8c4a6d760..a857b20c8695df9922d63bd167454afa9a083494 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -2400,9 +2400,11 @@ void CanvasRenderingContext2D::drawFocusRing(const Path& path, Element* element) |
c->clearShadow(); |
c->setCompositeOperation(CompositeSourceOver, BlendModeNormal); |
- RefPtr<RenderStyle> style(RenderStyle::createDefaultStyle()); |
+ // These should match the style defined in html.css. |
Color focusRingColor = RenderTheme::focusRingColor(); |
- c->drawFocusRing(path, style->outlineWidth(), style->outlineOffset(), focusRingColor); |
+ const int focusRingWidth = 5; |
+ const int focusRingOutline = 0; |
+ c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); |
didDraw(path.boundingRect()); |
c->restore(); |