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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 18180008: Fix SVG relayout problem that occurs when only the viewport height changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 | « LayoutTests/svg/as-image/same-source-different-height-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 83e5e8ba6bfbce75709d238c469209bceb8b31e2..0501515b4aae0e96d135764da54048d6bf51071f 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -269,7 +269,8 @@ void RenderView::layout()
|| child->style()->logicalMaxHeight().isPercent()
|| child->style()->logicalHeight().isViewportPercentage()
|| child->style()->logicalMinHeight().isViewportPercentage()
- || child->style()->logicalMaxHeight().isViewportPercentage())
+ || child->style()->logicalMaxHeight().isViewportPercentage()
+ || child->isSVGRoot())
child->setChildNeedsLayout(true, MarkOnlyThis);
}
}
« no previous file with comments | « LayoutTests/svg/as-image/same-source-different-height-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698