| Index: Source/core/svg/SVGFitToViewBox.cpp
|
| diff --git a/Source/core/svg/SVGFitToViewBox.cpp b/Source/core/svg/SVGFitToViewBox.cpp
|
| index 418f29d85e1ada76e851a000b742ef549a2b4bad..6771cd73f29a38633be1f1f944aaa81a56436817 100644
|
| --- a/Source/core/svg/SVGFitToViewBox.cpp
|
| +++ b/Source/core/svg/SVGFitToViewBox.cpp
|
| @@ -66,19 +66,11 @@ void SVGAnimatedViewBoxRect::setBaseValueAsString(const String& value, SVGParsin
|
| }
|
| }
|
|
|
| -SVGFitToViewBox::SVGFitToViewBox()
|
| +SVGFitToViewBox::SVGFitToViewBox(SVGElement* element, PropertyMapPolicy propertyMapPolicy)
|
| + : m_viewBox(SVGAnimatedViewBoxRect::create(element))
|
| + , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(element, SVGNames::preserveAspectRatioAttr, SVGPreserveAspectRatio::create()))
|
| {
|
| -}
|
| -
|
| -void SVGFitToViewBox::initialize(SVGElement* element, PropertyMapPolicy propertyMapPolicy)
|
| -{
|
| - ASSERT(!m_viewBox);
|
| - ASSERT(!m_preserveAspectRatio);
|
| ASSERT(element);
|
| -
|
| - m_viewBox = SVGAnimatedViewBoxRect::create(element);
|
| - m_preserveAspectRatio = SVGAnimatedPreserveAspectRatio::create(element, SVGNames::preserveAspectRatioAttr, SVGPreserveAspectRatio::create());
|
| -
|
| if (propertyMapPolicy == PropertyMapPolicyAdd) {
|
| element->addToPropertyMap(m_viewBox);
|
| element->addToPropertyMap(m_preserveAspectRatio);
|
|
|