Index: Source/core/layout/LayoutReplaced.cpp |
diff --git a/Source/core/layout/LayoutReplaced.cpp b/Source/core/layout/LayoutReplaced.cpp |
index cadc5b1efdfca7550721f9fc995e1c951ff800b8..ba7bafbf8e0f3492adf632d5e8c3be0d045f7409 100644 |
--- a/Source/core/layout/LayoutReplaced.cpp |
+++ b/Source/core/layout/LayoutReplaced.cpp |
@@ -271,7 +271,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(); |
@@ -334,7 +334,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(); |