Index: Source/core/paint/ObjectPainter.cpp |
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp |
index 37886757c15136eb1bebe76af7fa091ca88faa3d..f19c01892d199ee8763ab54e5adafa280c1f9f1f 100644 |
--- a/Source/core/paint/ObjectPainter.cpp |
+++ b/Source/core/paint/ObjectPainter.cpp |
@@ -15,6 +15,18 @@ |
namespace blink { |
+LayoutRect ObjectPainter::outlineBounds(const LayoutRect& objectBounds, const ComputedStyle& style) |
+{ |
+ int outlineOutset; |
+ if (style.outlineStyleIsAuto()) |
+ outlineOutset = GraphicsContext::focusRingOutsetExtent(style.outlineOffset(), style.outlineWidth()); |
+ else |
+ outlineOutset = style.outlineSize(); |
fs
2015/06/08 16:30:51
This pattern appears to pop up here and there... M
chrishtr
2015/06/08 22:59:41
Sure...do as a followup maybe?
|
+ LayoutRect outlineBounds(objectBounds); |
+ outlineBounds.inflate(outlineOutset); |
+ return outlineBounds; |
+} |
+ |
void ObjectPainter::paintFocusRing(const PaintInfo& paintInfo, const ComputedStyle& style, const Vector<LayoutRect>& focusRingRects) |
{ |
ASSERT(style.outlineStyleIsAuto()); |