| Index: Source/core/layout/LayoutReplaced.cpp
|
| diff --git a/Source/core/layout/LayoutReplaced.cpp b/Source/core/layout/LayoutReplaced.cpp
|
| index cadc5b1efdfca7550721f9fc995e1c951ff800b8..22f0af4f7fc2f8a29b85f3924d8c2174bfaabc7a 100644
|
| --- a/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/Source/core/layout/LayoutReplaced.cpp
|
| @@ -226,6 +226,10 @@ LayoutRect LayoutReplaced::replacedContentRect(const LayoutSize* overriddenIntri
|
| return contentRect;
|
| }
|
|
|
| + // TODO(davve): intrinsicSize doubles as both intrinsic size and intrinsic ratio. In the case of
|
| + // SVG images this isn't correct since they can have intrinsic ratio but no intrinsic size. In
|
| + // order to maintain aspect ratio, the intrinsic size for SVG might be faked from the aspect
|
| + // ratio, see SVGImage::containerSize().
|
| LayoutSize intrinsicSize = overriddenIntrinsicSize ? *overriddenIntrinsicSize : this->intrinsicSize();
|
| if (!intrinsicSize.width() || !intrinsicSize.height())
|
| return contentRect;
|
|
|