| 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 6a16ef6e0c526312cb58eb02bede00019b3fea8b..0fc5ba0b7af063cf1f755076ae7027130d6d1c67 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
|
| @@ -84,12 +84,12 @@ void LayoutSVGRoot::computeIntrinsicSizingInfo(IntrinsicSizingInfo& intrinsicSiz
|
| intrinsicSizingInfo.hasHeight = svg->hasIntrinsicHeight();
|
|
|
| if (!intrinsicSizingInfo.size.isEmpty()) {
|
| - intrinsicSizingInfo.aspectRatio = intrinsicSizingInfo.size.width() / static_cast<double>(intrinsicSizingInfo.size.height());
|
| + intrinsicSizingInfo.aspectRatio = intrinsicSizingInfo.size;
|
| } else {
|
| FloatSize viewBoxSize = svg->viewBox()->currentValue()->value().size();
|
| if (!viewBoxSize.isEmpty()) {
|
| // The viewBox can only yield an intrinsic ratio, not an intrinsic size.
|
| - intrinsicSizingInfo.aspectRatio = viewBoxSize.width() / static_cast<double>(viewBoxSize.height());
|
| + intrinsicSizingInfo.aspectRatio = viewBoxSize;
|
| }
|
| }
|
|
|
|
|