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 SVGFilterElement::SVGFilterElement(Document& document) : SVGElement(SVGNames::filterTag, document) , 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_filterUnits(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) , m_primitiveUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) { ScriptWrappable::init(this); // Spec: If the x/y attribute is not specified, the effect is as if a value of "-10%" were specified. // Spec: If the width/height attribute is not specified, the effect is as if a value of "120%" were specified. m_x->setDefaultValueAsString("-10%"); m_y->setDefaultValueAsString("-10%"); m_width->setDefaultValueAsString("120%"); m_height->setDefaultValueAsString("120%"); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); registerAnimatedPropertiesForSVGFilterElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFEOffsetElement::SVGFEOffsetElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feOffsetTag, document) , m_dx(SVGAnimatedNumber::create(this, SVGNames::dxAttr, SVGNumber::create())) , m_dy(SVGAnimatedNumber::create(this, SVGNames::dyAttr, SVGNumber::create())) { ScriptWrappable::init(this); addToPropertyMap(m_dx); addToPropertyMap(m_dy); registerAnimatedPropertiesForSVGFEOffsetElement(); }
SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagName, Document& document) : SVGTextContentElement(tagName, document) , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::create(SVGLengthMode::Width))) , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::create(SVGLengthMode::Height))) , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::create(SVGLengthMode::Width))) , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::create(SVGLengthMode::Height))) , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumberList::create())) { addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_dx); addToPropertyMap(m_dy); addToPropertyMap(m_rotate); }
SVGLineElement::SVGLineElement(Document& document) : SVGGeometryElement(SVGNames::lineTag, document) , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(LengthModeWidth), AllowNegativeLengths)) , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(LengthModeHeight), AllowNegativeLengths)) , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(LengthModeWidth), AllowNegativeLengths)) , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(LengthModeHeight), AllowNegativeLengths)) { ScriptWrappable::init(this); addToPropertyMap(m_x1); addToPropertyMap(m_y1); addToPropertyMap(m_x2); addToPropertyMap(m_y2); }
SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feDiffuseLightingTag, document) , m_diffuseConstant(SVGAnimatedNumber::create(this, SVGNames::diffuseConstantAttr, SVGNumber::create(1))) , m_surfaceScale(SVGAnimatedNumber::create(this, SVGNames::surfaceScaleAttr, SVGNumber::create(1))) , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::kernelUnitLengthAttr)) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_diffuseConstant); addToPropertyMap(m_surfaceScale); addToPropertyMap(m_kernelUnitLength); addToPropertyMap(m_in1); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGCircleElement::SVGCircleElement(Document& document) : SVGGeometryElement(SVGNames::circleTag, document) , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(LengthModeWidth))) , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(LengthModeHeight))) , m_r(SVGAnimatedLength::create(this, SVGNames::rAttr, SVGLength::create(LengthModeOther))) { ScriptWrappable::init(this); addToPropertyMap(m_cx); addToPropertyMap(m_cy); addToPropertyMap(m_r); registerAnimatedPropertiesForSVGCircleElement(); }
SVGFEComponentTransferElement::SVGFEComponentTransferElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feComponentTransferTag, document) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_in1); }
SVGFEMergeNodeElement::SVGFEMergeNodeElement(Document& document) : SVGElement(SVGNames::feMergeNodeTag, document) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_in1); }
SVGGraphicsElement::SVGGraphicsElement(const QualifiedName& tagName, Document& document, ConstructionType constructionType) : SVGElement(tagName, document, constructionType) , SVGTests(this) , m_transform(SVGAnimatedTransformList::create(this, SVGNames::transformAttr, SVGTransformList::create())) { addToPropertyMap(m_transform); }
inline SVGUseElement::SVGUseElement(Document& document) : SVGGraphicsElement(SVGNames::useTag, document) , SVGURIReference(this) , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVGLengthMode::Width))) , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVGLengthMode::Height))) , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(SVGLengthMode::Width))) , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(SVGLengthMode::Height))) , m_haveFiredLoadEvent(false) , m_needsShadowTreeRecreation(false) { ASSERT(hasCustomStyleCallbacks()); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFETurbulenceElement::SVGFETurbulenceElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feTurbulenceTag, document) , m_baseFrequency(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::baseFrequencyAttr)) , m_seed(SVGAnimatedNumber::create(this, SVGNames::seedAttr, SVGNumber::create(0))) , m_numOctaves(SVGAnimatedInteger::create(this, SVGNames::numOctavesAttr, SVGInteger::create(1))) , m_stitchTiles(SVG_STITCHTYPE_NOSTITCH) , m_type(FETURBULENCE_TYPE_TURBULENCE) { ScriptWrappable::init(this); addToPropertyMap(m_baseFrequency); addToPropertyMap(m_seed); addToPropertyMap(m_numOctaves); registerAnimatedPropertiesForSVGFETurbulenceElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(Document& document) : SVGElement(SVGNames::feMergeNodeTag, document) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_in1); registerAnimatedPropertiesForSVGFEMergeNodeElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFETileElement::SVGFETileElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feTileTag, document) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_in1); registerAnimatedPropertiesForSVGFETileElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFEColorMatrixElement::SVGFEColorMatrixElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feColorMatrixTag, document) , m_values(SVGAnimatedNumberList::create(this, SVGNames::valuesAttr, SVGNumberList::create())) , m_type(FECOLORMATRIX_TYPE_MATRIX) { ScriptWrappable::init(this); addToPropertyMap(m_values); registerAnimatedPropertiesForSVGFEColorMatrixElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGViewElement::SVGViewElement(Document& document) : SVGElement(SVGNames::viewTag, document) , SVGFitToViewBox(this) , m_viewTarget(SVGStaticStringList::create(this, SVGNames::viewTargetAttr)) { ScriptWrappable::init(this); addToPropertyMap(m_viewTarget); registerAnimatedPropertiesForSVGViewElement(); }
SVGMaskElement::SVGMaskElement(Document& document) : SVGElement(SVGNames::maskTag, document) , SVGTests(this) , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(LengthModeWidth), AllowNegativeLengths)) , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(LengthModeHeight), AllowNegativeLengths)) , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(LengthModeWidth), ForbidNegativeLengths)) , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(LengthModeHeight), ForbidNegativeLengths)) , m_maskUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)) , m_maskContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskContentUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) { ScriptWrappable::init(this); // Spec: If the x/y attribute is not specified, the effect is as if a value of "-10%" were specified. m_x->setDefaultValueAsString("-10%"); m_y->setDefaultValueAsString("-10%"); // Spec: If the width/height attribute is not specified, the effect is as if a value of "120%" were specified. m_width->setDefaultValueAsString("120%"); m_height->setDefaultValueAsString("120%"); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); addToPropertyMap(m_maskUnits); addToPropertyMap(m_maskContentUnits); }
SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const QualifiedName& tagName, Document& document) : SVGElement(tagName, document) , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVGLengthMode::Width))) , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVGLengthMode::Height))) , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(SVGLengthMode::Width))) , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(SVGLengthMode::Height))) , m_result(SVGAnimatedString::create(this, SVGNames::resultAttr, SVGString::create())) { // Spec: If the x/y attribute is not specified, the effect is as if a value of "0%" were specified. m_x->setDefaultValueAsString("0%"); m_y->setDefaultValueAsString("0%"); // Spec: If the width/height attribute is not specified, the effect is as if a value of "100%" were specified. m_width->setDefaultValueAsString("100%"); m_height->setDefaultValueAsString("100%"); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); addToPropertyMap(m_result); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGUseElement::SVGUseElement(Document& document, bool wasInsertedByParser) : SVGGraphicsElement(SVGNames::useTag, document) , SVGURIReference(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_wasInsertedByParser(wasInsertedByParser) , m_haveFiredLoadEvent(false) , m_needsShadowTreeRecreation(false) , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) { ASSERT(hasCustomStyleCallbacks()); ScriptWrappable::init(this); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); registerAnimatedPropertiesForSVGUseElement(); }
SVGElement::SVGElement(const QualifiedName& tagName, Document& document, ConstructionType constructionType) : Element(tagName, &document, constructionType) #if ASSERT_ENABLED , m_inRelativeLengthClientsInvalidation(false) #endif // |m_isContextElement| must be initialized before |m_className|, as SVGAnimatedString tear-off c-tor currently set this to true. , m_isContextElement(false) , m_SVGRareData(nullptr) , m_className(SVGAnimatedString::create(this, HTMLNames::classAttr, SVGString::create())) { ScriptWrappable::init(this); addToPropertyMap(m_className); setHasCustomStyleCallbacks(); }
SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document& document) : SVGElement(tagName, document) , m_azimuth(SVGAnimatedNumber::create(this, SVGNames::azimuthAttr, SVGNumber::create())) , m_elevation(SVGAnimatedNumber::create(this, SVGNames::elevationAttr, SVGNumber::create())) , m_x(SVGAnimatedNumber::create(this, SVGNames::xAttr, SVGNumber::create())) , m_y(SVGAnimatedNumber::create(this, SVGNames::yAttr, SVGNumber::create())) , m_z(SVGAnimatedNumber::create(this, SVGNames::zAttr, SVGNumber::create())) , m_pointsAtX(SVGAnimatedNumber::create(this, SVGNames::pointsAtXAttr, SVGNumber::create())) , m_pointsAtY(SVGAnimatedNumber::create(this, SVGNames::pointsAtYAttr, SVGNumber::create())) , m_pointsAtZ(SVGAnimatedNumber::create(this, SVGNames::pointsAtZAttr, SVGNumber::create())) , m_specularExponent(SVGAnimatedNumber::create(this, SVGNames::specularExponentAttr, SVGNumber::create(1))) , m_limitingConeAngle(SVGAnimatedNumber::create(this, SVGNames::limitingConeAngleAttr, SVGNumber::create())) { addToPropertyMap(m_azimuth); addToPropertyMap(m_elevation); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_z); addToPropertyMap(m_pointsAtX); addToPropertyMap(m_pointsAtY); addToPropertyMap(m_pointsAtZ); addToPropertyMap(m_specularExponent); addToPropertyMap(m_limitingConeAngle); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGRectElement::SVGRectElement(Document& document) : SVGGeometryElement(SVGNames::rectTag, document) , 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_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(LengthModeWidth))) , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(LengthModeHeight))) { ScriptWrappable::init(this); addToPropertyMap(m_x); addToPropertyMap(m_y); addToPropertyMap(m_width); addToPropertyMap(m_height); addToPropertyMap(m_rx); addToPropertyMap(m_ry); registerAnimatedPropertiesForSVGRectElement(); }
END_REGISTER_ANIMATED_PROPERTIES inline SVGFECompositeElement::SVGFECompositeElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document) , m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create())) , m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create())) , m_k3(SVGAnimatedNumber::create(this, SVGNames::k3Attr, SVGNumber::create())) , m_k4(SVGAnimatedNumber::create(this, SVGNames::k4Attr, SVGNumber::create())) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create())) , m_svgOperator(FECOMPOSITE_OPERATOR_OVER) { ScriptWrappable::init(this); addToPropertyMap(m_k1); addToPropertyMap(m_k2); addToPropertyMap(m_k3); addToPropertyMap(m_k4); addToPropertyMap(m_in1); addToPropertyMap(m_in2); registerAnimatedPropertiesForSVGFECompositeElement(); }