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

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

Issue 1321613002: Refactor ObjectPainter::paintOutline to take a paintOffset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
Index: Source/core/paint/SVGShapePainter.cpp
diff --git a/Source/core/paint/SVGShapePainter.cpp b/Source/core/paint/SVGShapePainter.cpp
index 1af910d6fa589a437edb2b863050e6790045fe90..bcc8be1710adcda52641e3ef3025a1ff65bb980a 100644
--- a/Source/core/paint/SVGShapePainter.cpp
+++ b/Source/core/paint/SVGShapePainter.cpp
@@ -116,9 +116,9 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo)
if (m_layoutSVGShape.style()->outlineWidth()) {
PaintInfo outlinePaintInfo(paintInfoBeforeFiltering);
outlinePaintInfo.phase = PaintPhaseSelfOutline;
- LayoutRect layoutObjectBounds(boundingBox);
- LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutObjectBounds, m_layoutSVGShape.styleRef());
- ObjectPainter(m_layoutSVGShape).paintOutline(outlinePaintInfo, layoutObjectBounds, visualOverflowRect);
+ LayoutRect layoutBoundingBox(boundingBox);
+ LayoutRect visualOverflowRect = ObjectPainter::outlineRectForSVG(layoutBoundingBox.size(), m_layoutSVGShape.styleRef());
+ ObjectPainter(m_layoutSVGShape).paintOutline(outlinePaintInfo, visualOverflowRect, layoutBoundingBox.size(), layoutBoundingBox.location());
}
}

Powered by Google App Engine
This is Rietveld 408576698