| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| index 7e6a83c8d26259c90bb7bb975d7e491cda094184..eb1698db70b03cecdea54c555a3cca3f7d104b6c 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| @@ -122,7 +122,7 @@ LayoutUnit LayoutSVGRoot::computeReplacedLogicalWidth(ShouldComputePreferred sho
|
| return LayoutReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
|
| }
|
|
|
| -LayoutUnit LayoutSVGRoot::computeReplacedLogicalHeight() const
|
| +LayoutUnit LayoutSVGRoot::computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidth) const
|
| {
|
| // When we're embedded through SVGImage (border-image/background-image/<html:img>/...) we're forced to resize to a specific size.
|
| if (!m_containerSize.isEmpty())
|
| @@ -131,7 +131,7 @@ LayoutUnit LayoutSVGRoot::computeReplacedLogicalHeight() const
|
| if (isEmbeddedThroughFrameContainingSVGDocument())
|
| return containingBlock()->availableLogicalHeight(IncludeMarginBorderPadding);
|
|
|
| - return LayoutReplaced::computeReplacedLogicalHeight();
|
| + return LayoutReplaced::computeReplacedLogicalHeight(estimatedUsedWidth);
|
| }
|
|
|
| void LayoutSVGRoot::layout()
|
|
|