| Index: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| index 90a7524683d22369ce3b6c8bc99df714f4db7f04..5957efb28346559e2ce63bb3743bfba45253d275 100644
|
| --- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| @@ -346,20 +346,19 @@ FrameView* SVGImage::frameView() const
|
| return toLocalFrame(m_page->mainFrame())->view();
|
| }
|
|
|
| -void SVGImage::computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio)
|
| +void SVGImage::computeIntrinsicDimensions(FloatSize& intrinsicSize, FloatSize& intrinsicRatio)
|
| {
|
| SVGSVGElement* rootElement = svgRootElement(m_page.get());
|
| if (!rootElement)
|
| return;
|
|
|
| - intrinsicWidth = rootElement->intrinsicWidth();
|
| - intrinsicHeight = rootElement->intrinsicHeight();
|
| + intrinsicSize = FloatSize(rootElement->intrinsicWidth(), rootElement->intrinsicHeight());
|
| if (rootElement->preserveAspectRatio()->currentValue()->align() == SVGPreserveAspectRatio::SVG_PRESERVEASPECTRATIO_NONE)
|
| return;
|
|
|
| intrinsicRatio = rootElement->viewBox()->currentValue()->value().size();
|
| - if (intrinsicRatio.isEmpty() && intrinsicWidth.isFixed() && intrinsicHeight.isFixed())
|
| - intrinsicRatio = FloatSize(floatValueForLength(intrinsicWidth, 0), floatValueForLength(intrinsicHeight, 0));
|
| + if (intrinsicRatio.isEmpty())
|
| + intrinsicRatio = intrinsicSize;
|
| }
|
|
|
| // FIXME: support CatchUpAnimation = CatchUp.
|
|
|