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

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

Issue 263393003: Add early-out to RenderSVG{Block,ModelObject}::repaintTreeAfterLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add early-out to RenderSVGBlock too. Created 6 years, 7 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 | « Source/core/rendering/svg/RenderSVGBlock.cpp ('k') | no next file » | 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 64e1b84a1119d8eb390ebd76529ceb3613962b20..a0ff15a30179d02bac0e94d34526f9626303008e 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -128,11 +128,14 @@ void RenderSVGModelObject::repaintTreeAfterLayout()
{
// Note: This is a reduced version of RenderBox::repaintTreeAfterLayout().
// FIXME: Should share code with RenderBox::repaintTreeAfterLayout().
- LayoutStateDisabler layoutStateDisabler(*this);
-
ASSERT(RuntimeEnabledFeatures::repaintAfterLayoutEnabled());
ASSERT(!needsLayout());
+ if (!shouldCheckForInvalidationAfterLayout())
+ return;
+
+ LayoutStateDisabler layoutStateDisabler(*this);
+
const LayoutRect oldRepaintRect = previousRepaintRect();
const LayoutPoint oldPositionFromRepaintContainer = previousPositionFromRepaintContainer();
RenderLayerModelObject* repaintContainer = containerForRepaint();
« no previous file with comments | « Source/core/rendering/svg/RenderSVGBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698