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

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

Issue 1224933002: Combine outline and focus ring code paths (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 9bfeb7c944298afc9c27888af482980884739c36..91734ae0668eeb66e5bb70f3d68186c8f93acf91 100644
--- a/Source/core/paint/SVGImagePainter.cpp
+++ b/Source/core/paint/SVGImagePainter.cpp
@@ -55,12 +55,8 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
}
}
- if (m_layoutSVGImage.style()->outlineWidth()) {
- PaintInfo outlinePaintInfo(paintInfoBeforeFiltering);
- outlinePaintInfo.phase = PaintPhaseSelfOutline;
- LayoutRect layoutBoundingBox(boundingBox);
- ObjectPainter(m_layoutSVGImage).paintOutline(outlinePaintInfo, m_layoutSVGImage.outlineVisualOverflowRect(), layoutBoundingBox.size(), layoutBoundingBox.location());
- }
+ if (m_layoutSVGImage.style()->outlineWidth())
+ ObjectPainter(m_layoutSVGImage).paintOutline(paintInfoBeforeFiltering, LayoutPoint(boundingBox.location()));
}
void SVGImagePainter::paintForeground(const PaintInfo& paintInfo)

Powered by Google App Engine
This is Rietveld 408576698