| 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 243c005923e330871677136d17fa7ee572c2b617..05d0c153eeb67d51005b22857d1c39d64473ab8c 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/layout/HitTestResult.h"
|
| #include "core/layout/LayoutAnalyzer.h"
|
| +#include "core/layout/LayoutView.h"
|
| #include "core/layout/api/LayoutPartItem.h"
|
| #include "core/layout/svg/LayoutSVGText.h"
|
| #include "core/layout/svg/SVGLayoutSupport.h"
|
| @@ -134,6 +135,13 @@ LayoutUnit LayoutSVGRoot::ComputeReplacedLogicalHeight(
|
| return ContainingBlock()->AvailableLogicalHeight(
|
| kIncludeMarginBorderPadding);
|
|
|
| + const Length& logical_height = Style()->LogicalHeight();
|
| + if (IsDocumentElement() && logical_height.IsPercentOrCalc()) {
|
| + return ValueForLength(
|
| + logical_height,
|
| + GetDocument().GetLayoutView()->ViewLogicalHeightForPercentages());
|
| + }
|
| +
|
| return LayoutReplaced::ComputeReplacedLogicalHeight(estimated_used_width);
|
| }
|
|
|
|
|