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

Unified Diff: Source/core/paint/SVGContainerPainter.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
Index: Source/core/paint/SVGContainerPainter.cpp
diff --git a/Source/core/paint/SVGContainerPainter.cpp b/Source/core/paint/SVGContainerPainter.cpp
index 96d3f037d4b6017f2c41d6b5e9d6535be5c18855..dde9a71f75bcc36d9a61b70d6988b974650d85f4 100644
--- a/Source/core/paint/SVGContainerPainter.cpp
+++ b/Source/core/paint/SVGContainerPainter.cpp
@@ -25,10 +25,6 @@ void SVGContainerPainter::paint(const PaintInfo& paintInfo)
if (!m_renderSVGContainer.firstChild() && !m_renderSVGContainer.selfWillPaint())
return;
- FloatRect paintInvalidationRect = m_renderSVGContainer.paintInvalidationRectInLocalCoordinates();
- if (!SVGRenderSupport::paintInfoIntersectsPaintInvalidationRect(paintInvalidationRect, m_renderSVGContainer.localToParentTransform(), paintInfo))
- return;
-
// Spec: An empty viewBox on the <svg> element disables rendering.
ASSERT(m_renderSVGContainer.element());
if (isSVGSVGElement(*m_renderSVGContainer.element()) && toSVGSVGElement(*m_renderSVGContainer.element()).hasEmptyViewBox())
@@ -63,7 +59,7 @@ void SVGContainerPainter::paint(const PaintInfo& paintInfo)
// FIXME: This means our focus ring won't share our rotation like it should.
// We should instead disable our clip during PaintPhaseOutline
if (paintInfo.phase == PaintPhaseForeground && m_renderSVGContainer.style()->outlineWidth() && m_renderSVGContainer.style()->visibility() == VISIBLE) {
- IntRect paintRectInParent = enclosingIntRect(m_renderSVGContainer.localToParentTransform().mapRect(paintInvalidationRect));
+ IntRect paintRectInParent = enclosingIntRect(m_renderSVGContainer.localToParentTransform().mapRect(m_renderSVGContainer.paintInvalidationRectInLocalCoordinates()));
ObjectPainter(m_renderSVGContainer).paintOutline(paintInfo, paintRectInParent);
}
}

Powered by Google App Engine
This is Rietveld 408576698