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

Unified Diff: Source/core/rendering/svg/RenderSVGBlock.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 | « no previous file | Source/core/rendering/svg/RenderSVGModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGBlock.cpp
diff --git a/Source/core/rendering/svg/RenderSVGBlock.cpp b/Source/core/rendering/svg/RenderSVGBlock.cpp
index 85c9c17361a971e03302deca85fd8a14f13cee98..37c175e8c6b9b811ee4ee3395c29a0a1df5c3a89 100644
--- a/Source/core/rendering/svg/RenderSVGBlock.cpp
+++ b/Source/core/rendering/svg/RenderSVGBlock.cpp
@@ -114,6 +114,9 @@ bool RenderSVGBlock::nodeAtPoint(const HitTestRequest&, HitTestResult&, const Hi
void RenderSVGBlock::repaintTreeAfterLayout()
{
+ if (!shouldCheckForInvalidationAfterLayout())
+ return;
+
LayoutStateDisabler layoutStateDisabler(*this);
RenderBlockFlow::repaintTreeAfterLayout();
}
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698