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

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

Issue 1549153002: Fix preferred logical widths of orthogonal writing modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations Created 4 years, 12 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 7daa88b77c873e20b2aba1437feb64eb10f7c978..f80e8858a7101d27f35beea1c2e3952f0baf374d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -134,7 +134,6 @@ LayoutBlock::LayoutBlock(ContainerNode* node)
, m_widthAvailableToChildrenChanged(false)
, m_hasOnlySelfCollapsingChildren(false)
, m_descendantsWithFloatsMarkedForLayout(false)
- , m_needsRecalcLogicalWidthAfterLayoutChildren(false)
{
// LayoutBlockFlow calls setChildrenInline(true).
// By default, subclasses do not have inline children.
@@ -2112,7 +2111,6 @@ void LayoutBlock::computeChildPreferredLogicalWidths(LayoutObject& child, Layout
minPreferredLogicalWidth = maxPreferredLogicalWidth = toLayoutBox(child).logicalHeight();
return;
}
- m_needsRecalcLogicalWidthAfterLayoutChildren = true;
minPreferredLogicalWidth = maxPreferredLogicalWidth = toLayoutBox(child).computeLogicalHeightWithoutLayout();
return;
}
@@ -2128,9 +2126,6 @@ void LayoutBlock::computeChildPreferredLogicalWidths(LayoutObject& child, Layout
else if (computedInlineSize.isMinContent())
maxPreferredLogicalWidth = minPreferredLogicalWidth;
}
-
- if (child.isLayoutBlock() && toLayoutBlock(child).needsRecalcLogicalWidthAfterLayoutChildren())
- m_needsRecalcLogicalWidthAfterLayoutChildren = true;
}
bool LayoutBlock::hasLineIfEmpty() const

Powered by Google App Engine
This is Rietveld 408576698