| 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 a6a1db68676a4229937e685667849be1d328e084..4b0fd9172a71cdbe2db7a9d9fe078681f5cafc72 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| @@ -863,8 +863,6 @@ void LayoutFlexibleBox::layoutFlexItems(bool relayoutChildren, SubtreeLayoutScop
|
|
|
| PaintLayerScrollableArea::PreventRelayoutScope preventRelayoutScope(layoutScope);
|
|
|
| - dirtyForLayoutFromPercentageHeightDescendants(layoutScope);
|
| -
|
| m_orderIterator.first();
|
| LayoutUnit crossAxisOffset = flowAwareBorderBefore() + flowAwarePaddingBefore();
|
| while (computeNextFlexLine(orderedChildren, sumFlexBaseSize, totalFlexGrow, totalFlexShrink, totalWeightedFlexShrink, sumHypotheticalMainSize, relayoutChildren)) {
|
| @@ -1603,8 +1601,8 @@ void LayoutFlexibleBox::layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, cons
|
| resetAutoMarginsAndLogicalTopInCrossAxis(*child);
|
| }
|
| // We may have already forced relayout for orthogonal flowing children in computeInnerFlexBaseSizeForChild.
|
| - bool forceChildRelayout = relayoutChildren && !childFlexBaseSizeRequiresLayout(*child);
|
| - if (child->isLayoutBlock() && toLayoutBlock(*child).hasPercentHeightDescendants() && m_relaidOutChildren.contains(child)) {
|
| + bool forceChildRelayout = relayoutChildren && !m_relaidOutChildren.contains(child);
|
| + if (child->isLayoutBlock() && toLayoutBlock(*child).hasPercentHeightDescendants()) {
|
| // Have to force another relayout even though the child is sized correctly, because
|
| // its descendants are not sized correctly yet. Our previous layout of the child was
|
| // done without an override height set. So, redo it here.
|
|
|