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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp

Issue 1549153002: Fix preferred logical widths of orthogonal writing modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow call to remove() while iterating as long as it doesn't actually remove Created 4 years, 11 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/layout/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index f589bc10dd9940647f92964093bf09969095937d..7b77eb2d2cf1dcccbd5d295e93b6e900bd6f3ae4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -109,13 +109,7 @@ void LayoutFlexibleBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidt
LayoutUnit minPreferredLogicalWidth;
LayoutUnit maxPreferredLogicalWidth;
- bool hasOrthogonalWritingMode = child->isHorizontalWritingMode() != isHorizontalWritingMode();
- if (hasOrthogonalWritingMode) {
- minPreferredLogicalWidth = maxPreferredLogicalWidth = child->computeLogicalHeightWithoutLayout();
- } else {
- minPreferredLogicalWidth = child->minPreferredLogicalWidth();
- maxPreferredLogicalWidth = child->maxPreferredLogicalWidth();
- }
+ computeChildPreferredLogicalWidths(*child, minPreferredLogicalWidth, maxPreferredLogicalWidth);
ASSERT(minPreferredLogicalWidth >= 0);
ASSERT(maxPreferredLogicalWidth >= 0);
minPreferredLogicalWidth += margin;

Powered by Google App Engine
This is Rietveld 408576698