From 4576aa36e9a9671459299c7963ac95aa94beaea9 Mon Sep 17 00:00:00 2001 From: "Shimeng (Simon) Wang" Date: Tue, 7 Dec 2010 17:22:45 -0800 Subject: Merge WebKit at r73109: Initial merge by git. Change-Id: I61f1a66d9642e3d8405d3ac6ccab2a53421c75d8 --- WebCore/svg/SVGUseElement.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'WebCore/svg/SVGUseElement.cpp') diff --git a/WebCore/svg/SVGUseElement.cpp b/WebCore/svg/SVGUseElement.cpp index a69334c..1abdbf2 100644 --- a/WebCore/svg/SVGUseElement.cpp +++ b/WebCore/svg/SVGUseElement.cpp @@ -57,6 +57,12 @@ namespace WebCore { +// Animated property definitions +DEFINE_ANIMATED_LENGTH(SVGUseElement, SVGNames::xAttr, X, x) +DEFINE_ANIMATED_LENGTH(SVGUseElement, SVGNames::yAttr, Y, y) +DEFINE_ANIMATED_LENGTH(SVGUseElement, SVGNames::widthAttr, Width, width) +DEFINE_ANIMATED_LENGTH(SVGUseElement, SVGNames::heightAttr, Height, height) + inline SVGUseElement::SVGUseElement(const QualifiedName& tagName, Document* document) : SVGStyledTransformableElement(tagName, document) , m_x(LengthModeWidth) @@ -199,6 +205,7 @@ void SVGUseElement::synchronizeProperty(const QualifiedName& attrName) synchronizeHeight(); synchronizeExternalResourcesRequired(); synchronizeHref(); + SVGTests::synchronizeProperties(this, attrName); return; } @@ -214,6 +221,8 @@ void SVGUseElement::synchronizeProperty(const QualifiedName& attrName) synchronizeExternalResourcesRequired(); else if (SVGURIReference::isKnownAttribute(attrName)) synchronizeHref(); + else if (SVGTests::isKnownAttribute(attrName)) + SVGTests::synchronizeProperties(this, attrName); } static void updateContainerSize(SVGUseElement* useElement, SVGElementInstance* targetInstance) -- cgit v1.1