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

Unified Diff: Source/core/paint/SVGImagePainter.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/SVGForeignObjectPainter.cpp ('k') | Source/core/paint/SVGRootPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGImagePainter.cpp
diff --git a/Source/core/paint/SVGImagePainter.cpp b/Source/core/paint/SVGImagePainter.cpp
index f37f1e8e4e71c6309e038eff577755dab82b75ac..2c5940a678e2decc10f247023ba86322c95801cd 100644
--- a/Source/core/paint/SVGImagePainter.cpp
+++ b/Source/core/paint/SVGImagePainter.cpp
@@ -29,10 +29,6 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
|| !m_renderSVGImage.imageResource()->hasImage())
return;
- FloatRect invalBox = m_renderSVGImage.paintInvalidationRectInLocalCoordinates();
- if (!SVGRenderSupport::paintInfoIntersectsPaintInvalidationRect(invalBox, m_renderSVGImage.localToParentTransform(), paintInfo))
- return;
-
PaintInfo childPaintInfo(paintInfo);
GraphicsContextStateSaver stateSaver(*childPaintInfo.context, false);
@@ -58,7 +54,7 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
}
if (m_renderSVGImage.style()->outlineWidth())
- ObjectPainter(m_renderSVGImage).paintOutline(childPaintInfo, IntRect(invalBox));
+ ObjectPainter(m_renderSVGImage).paintOutline(childPaintInfo, IntRect(m_renderSVGImage.paintInvalidationRectInLocalCoordinates()));
}
void SVGImagePainter::paintForeground(const PaintInfo& paintInfo)
« no previous file with comments | « Source/core/paint/SVGForeignObjectPainter.cpp ('k') | Source/core/paint/SVGRootPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698