diff options
Diffstat (limited to '')
-rw-r--r-- | layout/svg/SVGOuterSVGFrame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layout/svg/SVGOuterSVGFrame.cpp b/layout/svg/SVGOuterSVGFrame.cpp index d88327f059..00d7663901 100644 --- a/layout/svg/SVGOuterSVGFrame.cpp +++ b/layout/svg/SVGOuterSVGFrame.cpp @@ -126,9 +126,9 @@ NS_QUERYFRAME_TAIL_INHERITING(SVGDisplayContainerFrame) /* virtual */ nscoord SVGOuterSVGFrame::GetMinISize(gfxContext* aRenderingContext) { - // If this ever changes to return something other than zero, then - // nsSubDocumentFrame::GetMinISize will also need to change. - return 0; + auto size = GetIntrinsicSize(); + const auto& iSize = GetWritingMode().IsVertical() ? size.height : size.width; + return iSize.valueOr(0); } /* virtual */ |