| Index: Source/core/layout/LayoutReplaced.cpp
|
| diff --git a/Source/core/layout/LayoutReplaced.cpp b/Source/core/layout/LayoutReplaced.cpp
|
| index f2e7876c432c0e5728b7d3b70cd852d6b12a0054..9baaed343f295da82beed8fb870559ec94d960b5 100644
|
| --- a/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/Source/core/layout/LayoutReplaced.cpp
|
| @@ -275,7 +275,7 @@ void LayoutReplaced::computeIntrinsicRatioInformation(FloatSize& intrinsicSize,
|
| LayoutUnit LayoutReplaced::computeReplacedLogicalWidth(ShouldComputePreferred shouldComputePreferred) const
|
| {
|
| if (style()->logicalWidth().isSpecified() || style()->logicalWidth().isIntrinsic())
|
| - return computeReplacedLogicalWidthRespectingMinMaxWidth(computeReplacedLogicalWidthUsing(style()->logicalWidth()), shouldComputePreferred);
|
| + return computeReplacedLogicalWidthRespectingMinMaxWidth(computeReplacedLogicalWidthUsing(MainOrPreferredSize, style()->logicalWidth()), shouldComputePreferred);
|
|
|
| LayoutBox* contentRenderer = embeddedContentBox();
|
|
|
| @@ -338,7 +338,7 @@ LayoutUnit LayoutReplaced::computeReplacedLogicalHeight() const
|
| {
|
| // 10.5 Content height: the 'height' property: http://www.w3.org/TR/CSS21/visudet.html#propdef-height
|
| if (hasReplacedLogicalHeight())
|
| - return computeReplacedLogicalHeightRespectingMinMaxHeight(computeReplacedLogicalHeightUsing(style()->logicalHeight()));
|
| + return computeReplacedLogicalHeightRespectingMinMaxHeight(computeReplacedLogicalHeightUsing(MainOrPreferredSize, style()->logicalHeight()));
|
|
|
| LayoutBox* contentRenderer = embeddedContentBox();
|
|
|
|
|