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

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

Issue 201153008: Fix RenderBlock::percentHeightDescendants() (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 | « Source/core/rendering/RenderBox.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | 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 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));
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698