PassRefPtr<SVGAnimatedLength> SVGTextContentElement::textLengthAnimated() { DEFINE_STATIC_LOCAL(SVGLength, defaultTextLength, (LengthModeOther)); if (m_specifiedTextLength == defaultTextLength) m_textLength.value.newValueSpecifiedUnits(LengthTypeNumber, getComputedTextLength(), ASSERT_NO_EXCEPTION); m_textLength.shouldSynchronize = true; return static_pointer_cast<SVGAnimatedLength>(lookupOrCreateTextLengthWrapper(this)); }
PassRefPtr<SVGAnimatedLength> SVGTextContentElement::textLengthAnimated() { DEFINE_STATIC_LOCAL(SVGLength, defaultTextLength, (LengthModeOther)); if (m_specifiedTextLength == defaultTextLength) { ExceptionCode ec = 0; m_textLength.value.newValueSpecifiedUnits(LengthTypeNumber, getComputedTextLength(), ec); ASSERT(!ec); } m_textLength.shouldSynchronize = true; return SVGAnimatedProperty::lookupOrCreateWrapper<SVGAnimatedLength, SVGLength>(this, SVGNames::textLengthAttr, SVGNames::textLengthAttr.localName(), m_textLength.value); }