Index: Source/core/svg/graphics/SVGImage.cpp |
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp |
index c8231a1b40fd48ac641f074f5a01d72926e5eab6..a78255a6f295ec4697d455dd48706d89bea37aa0 100644 |
--- a/Source/core/svg/graphics/SVGImage.cpp |
+++ b/Source/core/svg/graphics/SVGImage.cpp |
@@ -280,10 +280,10 @@ void SVGImage::computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrin |
intrinsicWidth = rootElement->intrinsicWidth(); |
intrinsicHeight = rootElement->intrinsicHeight(); |
- if (rootElement->preserveAspectRatio().align() == SVGPreserveAspectRatio::SVG_PRESERVEASPECTRATIO_NONE) |
+ if (rootElement->preserveAspectRatioCurrentValue().align() == SVGPreserveAspectRatio::SVG_PRESERVEASPECTRATIO_NONE) |
return; |
- intrinsicRatio = rootElement->viewBox().size(); |
+ intrinsicRatio = rootElement->viewBoxCurrentValue().size(); |
if (intrinsicRatio.isEmpty() && intrinsicWidth.isFixed() && intrinsicHeight.isFixed()) |
intrinsicRatio = FloatSize(floatValueForLength(intrinsicWidth, 0), floatValueForLength(intrinsicHeight, 0)); |
} |