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

Unified Diff: Source/core/paint/SVGShapePainter.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/SVGShapePainter.cpp
diff --git a/Source/core/paint/SVGShapePainter.cpp b/Source/core/paint/SVGShapePainter.cpp
index 91a4b01796c1c9fc5cadb7014ae030b0a6ecea6a..28cc0de608e674c428b86d32a4f7153e8517913e 100644
--- a/Source/core/paint/SVGShapePainter.cpp
+++ b/Source/core/paint/SVGShapePainter.cpp
@@ -113,12 +113,8 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo)
}
}
- if (m_layoutSVGShape.style()->outlineWidth()) {
- PaintInfo outlinePaintInfo(paintInfoBeforeFiltering);
- outlinePaintInfo.phase = PaintPhaseSelfOutline;
- LayoutRect layoutBoundingBox(boundingBox);
- ObjectPainter(m_layoutSVGShape).paintOutline(outlinePaintInfo, m_layoutSVGShape.outlineVisualOverflowRect(), layoutBoundingBox.size(), layoutBoundingBox.location());
- }
+ if (m_layoutSVGShape.style()->outlineWidth())
+ ObjectPainter(m_layoutSVGShape).paintOutline(paintInfoBeforeFiltering, LayoutPoint(boundingBox.location()));
}
class PathWithTemporaryWindingRule {

Powered by Google App Engine
This is Rietveld 408576698