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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2361373002: [css-grid] Clearing override sizes before running grid's layout logic. (Closed)
Patch Set: A new approach, just facing orthogonal flow issues. Created 4 years, 3 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: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 83321cd962f46af6b19bf1dffeb2538bb6e33b00..5d966a49145afaf9f920234fae4f2d77cfba834c 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1888,6 +1888,11 @@ void FrameView::layoutOrthogonalWritingModeRoots()
{
for (auto& root : m_orthogonalWritingModeRootList.ordered()) {
ASSERT(root->isBox() && toLayoutBox(*root).isOrthogonalWritingModeRoot());
+ if (toLayoutBox(*root).hasContainingBlockOverrideSize() || toLayoutBox(*root).hasOverrideSize()) {
cbiesinger 2016/09/26 11:48:32 Hmm, so I understand why you're doing this but I t
jfernandez 2016/09/26 13:38:02 For the case I'm trying to solve is not enough to
+ toLayoutBox(*root).clearOverrideSize();
+ toLayoutBox(*root).clearContainingBlockOverrideSize();
+ root->setNeedsLayout(LayoutInvalidationReason::SizeChanged);
+ }
if (!root->needsLayout()
|| root->isOutOfFlowPositioned()
|| root->isColumnSpanAll()

Powered by Google App Engine
This is Rietveld 408576698