Commit a50f68a5 authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Use ScriptWrappable::init less

Use ScriptWrappable::init less, it is only needed for most derived classes usually, but these SVG classes are not exposed as JS type.

Review URL: https://codereview.chromium.org/328703005

git-svn-id: svn://svn.chromium.org/blink/trunk@176073 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7071b53f
......@@ -50,8 +50,6 @@ SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
, m_calcMode(CalcModeLinear)
, m_animationMode(NoAnimation)
{
ScriptWrappable::init(this);
UseCounter::count(document, UseCounter::SVGAnimationElement);
}
......
......@@ -52,7 +52,6 @@ SVGGradientElement::SVGGradientElement(const QualifiedName& tagName, Document& d
, m_spreadMethod(SVGAnimatedEnumeration<SVGSpreadMethodType>::create(this, SVGNames::spreadMethodAttr, SVGSpreadMethodPad))
, m_gradientUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::gradientUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX))
{
ScriptWrappable::init(this);
addToPropertyMap(m_gradientTransform);
addToPropertyMap(m_spreadMethod);
addToPropertyMap(m_gradientUnits);
......
......@@ -39,7 +39,6 @@ SVGPathSeg::SVGPathSeg(SVGPathElement* contextElement)
: m_ownerList(0)
, m_contextElement(contextElement)
{
ScriptWrappable::init(this);
}
void SVGPathSeg::commitChange()
......
......@@ -78,8 +78,6 @@ SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum
, m_textLengthIsSpecifiedByUser(false)
, m_lengthAdjust(SVGAnimatedEnumeration<SVGLengthAdjustType>::create(this, SVGNames::lengthAdjustAttr, SVGLengthAdjustSpacing))
{
ScriptWrappable::init(this);
addToPropertyMap(m_textLength);
addToPropertyMap(m_lengthAdjust);
}
......
......@@ -38,8 +38,6 @@ SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
, m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::create(LengthModeHeight)))
, m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumberList::create()))
{
ScriptWrappable::init(this);
addToPropertyMap(m_x);
addToPropertyMap(m_y);
addToPropertyMap(m_dx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment