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

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

Issue 802833003: Remove the SVG paint culling optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test for the moon lander. Created 6 years 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
« no previous file with comments | « Source/core/paint/SVGRootPainter.cpp ('k') | Source/core/paint/SVGTextPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGShapePainter.cpp
diff --git a/Source/core/paint/SVGShapePainter.cpp b/Source/core/paint/SVGShapePainter.cpp
index b9b346d5f244ecc5d178afea6b64d5ce30ca63cb..35e74d208425784ff8a22ae73acf4ef64330363b 100644
--- a/Source/core/paint/SVGShapePainter.cpp
+++ b/Source/core/paint/SVGShapePainter.cpp
@@ -48,10 +48,6 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo)
|| m_renderSVGShape.isShapeEmpty())
return;
- FloatRect boundingBox = m_renderSVGShape.paintInvalidationRectInLocalCoordinates();
- if (!SVGRenderSupport::paintInfoIntersectsPaintInvalidationRect(boundingBox, m_renderSVGShape.localTransform(), paintInfo))
- return;
-
PaintInfo childPaintInfo(paintInfo);
GraphicsContextStateSaver stateSaver(*childPaintInfo.context);
@@ -104,7 +100,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo)
}
if (m_renderSVGShape.style()->outlineWidth())
- ObjectPainter(m_renderSVGShape).paintOutline(childPaintInfo, IntRect(boundingBox));
+ ObjectPainter(m_renderSVGShape).paintOutline(childPaintInfo, IntRect(m_renderSVGShape.paintInvalidationRectInLocalCoordinates()));
}
void SVGShapePainter::fillShape(GraphicsContext* context)
« no previous file with comments | « Source/core/paint/SVGRootPainter.cpp ('k') | Source/core/paint/SVGTextPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698