| 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 4a3b44e41333e018d82cff22aaaea04be9a4d040..48702ae8e30fc8e67db156a63cae27340e07be81 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -2207,4 +2207,9 @@ bool LayoutBlock::HasDefiniteLogicalHeight() const {
|
| return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
|
| }
|
|
|
| +bool LayoutBlock::NeedsPreferredWidthsRecalculation() const {
|
| + return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) ||
|
| + LayoutBox::NeedsPreferredWidthsRecalculation();
|
| +}
|
| +
|
| } // namespace blink
|
|
|