| Index: Source/core/svg/SVGViewSpec.h
|
| diff --git a/Source/core/svg/SVGViewSpec.h b/Source/core/svg/SVGViewSpec.h
|
| index 1d078452e18358db31fcfc8b7590433bc5978bbc..59e022397c95df358f208e1aa204e1c64a04bc2f 100644
|
| --- a/Source/core/svg/SVGViewSpec.h
|
| +++ b/Source/core/svg/SVGViewSpec.h
|
| @@ -80,7 +80,7 @@ void SVGViewSpec::inheritViewAttributesFromElement(T* inheritFromElement)
|
| if (!inheritFromElement->hasEmptyViewBox())
|
| viewBox()->baseValue()->setValue(inheritFromElement->viewBox()->currentValue()->value());
|
|
|
| - if (inheritFromElement->hasAttribute(SVGNames::preserveAspectRatioAttr)) {
|
| + if (inheritFromElement->preserveAspectRatio()->isSpecified()) {
|
| preserveAspectRatio()->baseValue()->setAlign(inheritFromElement->preserveAspectRatio()->currentValue()->align());
|
| preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->preserveAspectRatio()->currentValue()->meetOrSlice());
|
| }
|
|
|