~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/svg/SVGPathElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-02-04 19:30:57 UTC
  • mfrom: (1.2.8 upstream) (4.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100204193057-d3018lm1fipb0703
* New upstream release
* debian/copyright:
- Updated with changes since 1.1.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    , SVGTests()
48
48
    , SVGLangSpace()
49
49
    , SVGExternalResourcesRequired()
50
 
    , m_pathLength(this, SVGNames::pathLengthAttr, 0.0f)
51
 
    , m_externalResourcesRequired(this, SVGNames::externalResourcesRequiredAttr, false)
52
50
{
53
51
}
54
52
 
206
204
        renderer()->setNeedsLayout(true);
207
205
}
208
206
 
 
207
void SVGPathElement::synchronizeProperty(const QualifiedName& attrName)
 
208
{
 
209
    SVGStyledTransformableElement::synchronizeProperty(attrName);
 
210
 
 
211
    if (attrName == anyQName()) {
 
212
        synchronizePathLength();
 
213
        synchronizeExternalResourcesRequired();
 
214
        return;
 
215
    }
 
216
 
 
217
    if (attrName == SVGNames::pathLengthAttr)
 
218
        synchronizePathLength();
 
219
    else if (SVGExternalResourcesRequired::isKnownAttribute(attrName))
 
220
        synchronizeExternalResourcesRequired();
 
221
}
 
222
 
209
223
SVGPathSegList* SVGPathElement::pathSegList() const
210
224
{
211
225
    if (!m_pathSegList)