| 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 9b1c581c07f54c0d899b39e005744af6ffaae0a9..d7bfd28ff4c44ce748e67bc95c7bde517c74aab4 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| @@ -576,7 +576,7 @@ LayoutUnit LayoutReplaced::computeReplacedLogicalWidth(ShouldComputePreferred sh
|
| // the used value of 'width' is calculated from the constraint equation used for block-level, non-replaced elements in normal flow.
|
| if (computedHeightIsAuto && !hasIntrinsicWidth && !hasIntrinsicHeight) {
|
| if (shouldComputePreferred == ComputePreferred)
|
| - return 0;
|
| + return computeReplacedLogicalWidthRespectingMinMaxWidth(0, ComputePreferred);
|
| // The aforementioned 'constraint equation' used for block-level, non-replaced elements in normal flow:
|
| // 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block
|
| LayoutUnit logicalWidth = containingBlock()->availableLogicalWidth();
|
|
|