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

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

Issue 190973007: Reland "Avoid layout/full-repaint on view height change if possible" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: computeOverflow, etc. 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
Index: Source/core/rendering/svg/RenderSVGRoot.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp
index 4c81c671401eec0f949037ead39fe614ae4f33da..17c50ff4561197b7ca86ff570e32038b414f2e6f 100644
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp
@@ -174,10 +174,9 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const
if (height.isPercent()) {
RenderBlock* cb = containingBlock();
ASSERT(cb);
- while (cb->isAnonymous()) {
+ while (cb->isAnonymous())
cb = cb->containingBlock();
- cb->addPercentHeightDescendant(const_cast<RenderSVGRoot*>(this));
- }
+ cb->addPercentHeightDescendant(const_cast<RenderSVGRoot*>(this));
} else
RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this));

Powered by Google App Engine
This is Rietveld 408576698