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

Unified Diff: Source/core/paint/SVGContainerPainter.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/SVGContainerPainter.cpp
diff --git a/Source/core/paint/SVGContainerPainter.cpp b/Source/core/paint/SVGContainerPainter.cpp
index 6b7a09d5a1442532ffc870c5d9cf6df7bddc05e0..52ff54e7bbc9a7f88b00ef88401265d421cba67e 100644
--- a/Source/core/paint/SVGContainerPainter.cpp
+++ b/Source/core/paint/SVGContainerPainter.cpp
@@ -59,9 +59,11 @@ void SVGContainerPainter::paint(const PaintInfo& paintInfo)
return;
if (m_layoutSVGContainer.style()->outlineWidth() && m_layoutSVGContainer.style()->visibility() == VISIBLE) {
+ PaintInfo outlinePaintInfo(paintInfoBeforeFiltering);
+ outlinePaintInfo.phase = PaintPhaseSelfOutline;
LayoutRect layoutBoundingBox(boundingBox);
- LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutBoundingBox, m_layoutSVGContainer.styleRef());
- ObjectPainter(m_layoutSVGContainer).paintOutline(paintInfoBeforeFiltering, layoutBoundingBox, visualOverflowRect);
+ LayoutRect visualOverflowRect = ObjectPainter::outlineRectForSVG(layoutBoundingBox.size(), m_layoutSVGContainer.styleRef());
+ ObjectPainter(m_layoutSVGContainer).paintOutline(outlinePaintInfo, visualOverflowRect, layoutBoundingBox.size(), layoutBoundingBox.location());
}
if (paintInfoBeforeFiltering.isPrinting())

Powered by Google App Engine
This is Rietveld 408576698