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

Unified Diff: Source/core/paint/SVGImagePainter.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/SVGImagePainter.cpp
diff --git a/Source/core/paint/SVGImagePainter.cpp b/Source/core/paint/SVGImagePainter.cpp
index 4601ae3a55bc4d0e730b9d680cbafc472da66642..852116132afb61c344919d361ddb544c3f9f74ec 100644
--- a/Source/core/paint/SVGImagePainter.cpp
+++ b/Source/core/paint/SVGImagePainter.cpp
@@ -59,8 +59,8 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
PaintInfo outlinePaintInfo(paintInfoBeforeFiltering);
outlinePaintInfo.phase = PaintPhaseSelfOutline;
LayoutRect layoutBoundingBox(boundingBox);
- LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutBoundingBox, m_layoutSVGImage.styleRef());
- ObjectPainter(m_layoutSVGImage).paintOutline(outlinePaintInfo, layoutBoundingBox, visualOverflowRect);
+ LayoutRect visualOverflowRect = ObjectPainter::outlineRectForSVG(layoutBoundingBox.size(), m_layoutSVGImage.styleRef());
+ ObjectPainter(m_layoutSVGImage).paintOutline(outlinePaintInfo, visualOverflowRect, layoutBoundingBox.size(), layoutBoundingBox.location());
}
}

Powered by Google App Engine
This is Rietveld 408576698