| Index: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| index b1c0f787121a9a560fc375edfdeb96ee952a5af6..8febecdedad02529b39e012ac4947b34ee1a7745 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| @@ -582,9 +582,9 @@ SVGPreserveAspectRatio* SVGSVGElement::currentPreserveAspectRatio() const {
|
| if (m_viewSpec)
|
| return m_viewSpec->preserveAspectRatio();
|
|
|
| - if (!viewBox()->currentValue()->isValid() && shouldSynthesizeViewBox()) {
|
| - // If no viewBox is specified and we're embedded through SVGImage, then
|
| - // synthesize a pAR with the value 'none'.
|
| + if (!hasValidViewBox() && shouldSynthesizeViewBox()) {
|
| + // If no (valid) viewBox is specified and we're embedded through SVGImage,
|
| + // then synthesize a pAR with the value 'none'.
|
| SVGPreserveAspectRatio* synthesizedPAR = SVGPreserveAspectRatio::create();
|
| synthesizedPAR->setAlign(
|
| SVGPreserveAspectRatio::kSvgPreserveaspectratioNone);
|
|
|