Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index 89ebeea9724a88b6bbcf0dc3060022dca6ff607f..21c3bc9e62e9e14e341108061079601f663e0ac2 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -61,6 +61,7 @@ namespace blink { |
inline SVGSVGElement::SVGSVGElement(Document& doc) |
: SVGGraphicsElement(SVGNames::svgTag, doc) |
+ , SVGFitToViewBox(this) |
, m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVGLengthMode::Width), AllowNegativeLengths)) |
, m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVGLengthMode::Height), AllowNegativeLengths)) |
, m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(SVGLengthMode::Width), ForbidNegativeLengths)) |
@@ -69,8 +70,6 @@ inline SVGSVGElement::SVGSVGElement(Document& doc) |
, m_timeContainer(SMILTimeContainer::create(*this)) |
, m_translation(SVGPoint::create()) |
{ |
- SVGFitToViewBox::initialize(this); |
- |
m_width->setDefaultValueAsString("100%"); |
m_height->setDefaultValueAsString("100%"); |