END_REGISTER_ANIMATED_PROPERTIES inline SVGSVGElement::SVGSVGElement(Document& doc) : SVGGraphicsElement(SVGNames::svgTag, doc) , SVGFitToViewBox(this) , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(LengthModeWidth))) , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(LengthModeHeight))) , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(LengthModeWidth))) , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(LengthModeHeight))) , m_useCurrentView(false) , m_timeContainer(SMILTimeContainer::create(this)) , m_translation(SVGPoint::create()) { ScriptWrappable::init(this); m_width->setDefaultValueAsString("100%"); m_height->setDefaultValueAsString("100%"); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); registerAnimatedPropertiesForSVGSVGElement(); UseCounter::count(doc, UseCounter::SVGSVGElement); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document& document) : SVGGraphicsElement(tagName, document) , m_x(LengthModeWidth) , m_y(LengthModeHeight) , m_width(LengthModeWidth, ASCIILiteral("100%")) , m_height(LengthModeHeight, ASCIILiteral("100%")) , m_timeContainer(SMILTimeContainer::create(this)) { ASSERT(hasTagName(SVGNames::svgTag)); registerAnimatedPropertiesForSVGSVGElement(); document.registerForDocumentSuspensionCallbacks(this); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document* doc) : SVGStyledLocatableElement(tagName, doc) , m_x(LengthModeWidth) , m_y(LengthModeHeight) , m_width(LengthModeWidth, "100%") , m_height(LengthModeHeight, "100%") , m_useCurrentView(false) , m_timeContainer(SMILTimeContainer::create(this)) { ASSERT(hasTagName(SVGNames::svgTag)); registerAnimatedPropertiesForSVGSVGElement(); doc->registerForPageCacheSuspensionCallbacks(this); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document* doc) : SVGStyledTransformableElement(tagName, doc) , m_x(LengthModeWidth) , m_y(LengthModeHeight) , m_width(LengthModeWidth, "100%") , m_height(LengthModeHeight, "100%") , m_useCurrentView(false) , m_zoomAndPan(SVGZoomAndPanMagnify) , m_timeContainer(SMILTimeContainer::create(this)) { ASSERT(hasTagName(SVGNames::svgTag)); ScriptWrappable::init(this); registerAnimatedPropertiesForSVGSVGElement(); }