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

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

Issue 208103002: [repaint-after-layout] Only repaint SVG root element when needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGRoot.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp
index 0e181b49e1f54b88ade56fab23a9e6f900aa81b7..5f0875bdfc122bc3a394ccdef7089bad1409d187 100644
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp
@@ -195,12 +195,11 @@ void RenderSVGRoot::layout()
{
ASSERT(needsLayout());
- LayoutRectRecorder recorder(*this);
-
// Arbitrary affine transforms are incompatible with LayoutState.
LayoutStateDisabler layoutStateDisabler(*this);
bool needsLayout = selfNeedsLayout();
+ LayoutRectRecorder recorder(*this, !(checkForRepaint() && needsLayout));
esprehn 2014/03/21 18:17:29 Can you propagate the ! through the statement? It'
dsinclair 2014/03/24 14:46:28 The flag was badly named, so I inverted the meanin
LayoutRepainter repainter(*this, checkForRepaintDuringLayout() && needsLayout);
LayoutSize oldSize = size();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698