| Index: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| index 9f10ae51d040d384e469528d75cff5360f3fd769..420e773f934b8f9db786462da0d8a89849502aa2 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| @@ -823,8 +823,10 @@ void LayoutReplaced::computePreferredLogicalWidths() {
|
| // fit-content) as the available logical width may not be set on our
|
| // containing block.
|
| const Length& logicalWidth = style()->logicalWidth();
|
| - if (logicalWidth.isPercentOrCalc() || logicalWidth.isFillAvailable() ||
|
| - logicalWidth.isFitContent())
|
| + if (logicalWidth.isLayoutDependent() ||
|
| + (logicalWidth.isAuto() &&
|
| + (style()->logicalMinWidth().isLayoutDependent() ||
|
| + style()->logicalMaxWidth().isLayoutDependent())))
|
| computeIntrinsicLogicalWidths(m_minPreferredLogicalWidth,
|
| m_maxPreferredLogicalWidth);
|
| else
|
| @@ -832,8 +834,8 @@ void LayoutReplaced::computePreferredLogicalWidths() {
|
| computeReplacedLogicalWidth(ComputePreferred);
|
|
|
| const ComputedStyle& styleToUse = styleRef();
|
| - if (styleToUse.logicalWidth().isPercentOrCalc() ||
|
| - styleToUse.logicalMaxWidth().isPercentOrCalc())
|
| + if (styleToUse.logicalWidth().isLayoutDependent() ||
|
| + styleToUse.logicalMaxWidth().isLayoutDependent())
|
| m_minPreferredLogicalWidth = LayoutUnit();
|
|
|
| if (styleToUse.logicalMinWidth().isFixed() &&
|
|
|