Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Unified Diff: Source/core/paint/ObjectPainter.cpp

Issue 1180713006: Use ComputedStyle::outlineOutset in ObjectPainter::outlineBounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ObjectPainter.cpp
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp
index f19c01892d199ee8763ab54e5adafa280c1f9f1f..7362fdf51b6831dcbbe5ae2023848eb5a50e1f62 100644
--- a/Source/core/paint/ObjectPainter.cpp
+++ b/Source/core/paint/ObjectPainter.cpp
@@ -17,13 +17,8 @@ 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();
LayoutRect outlineBounds(objectBounds);
- outlineBounds.inflate(outlineOutset);
+ outlineBounds.inflate(style.outlineOutset());
return outlineBounds;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698