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

Unified Diff: Source/core/rendering/svg/RenderSVGModelObject.cpp

Issue 327093003: [RAL] Reduce SVG tree walks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added svg/repaint/image-with-clip-path.svg to the rebaseline list Created 6 years, 6 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGModelObject.cpp
diff --git a/Source/core/rendering/svg/RenderSVGModelObject.cpp b/Source/core/rendering/svg/RenderSVGModelObject.cpp
index 6b2e391ece544e86e2cf73f265a52dd6391e07ce..1fb7e660548301b05a962220193673b4ccfe5f94 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -142,6 +142,13 @@ void RenderSVGModelObject::invalidateTreeAfterLayout(const RenderLayerModelObjec
setPreviousPaintInvalidationRect(clippedOverflowRectForRepaint(&newPaintInvalidationContainer));
setPreviousPositionFromPaintInvalidationContainer(positionFromRepaintContainer(&newPaintInvalidationContainer));
+ // If an ancestor container had its transform changed, then we just
+ // need to update the RenderSVGModelObject's repaint rect above. The invalidation
+ // will be handled by the container where the transform changed. This essentially
+ // means that we prune the entire branch for performance.
+ if (!SVGRenderSupport::parentTransformDidChange(this))
+ return;
+
// If we are set to do a full paint invalidation that means the RenderView will be
// issue paint invalidations. We can then skip issuing of paint invalidations for the child
// renderers as they'll be covered by the RenderView.
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698