X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fsvg%2FSVGAnimateMotionElement.cpp;h=6f8032d8b3168c4263209fe8c51e8bd8b6a74484;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=52f4f4b09c25642f0f053f9f462991bed23b1289;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp b/src/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp index 52f4f4b..6f8032d 100644 --- a/src/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp +++ b/src/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp @@ -24,6 +24,7 @@ #include "core/svg/SVGAnimateMotionElement.h" #include "core/SVGNames.h" +#include "core/dom/ElementTraversal.h" #include "core/rendering/RenderObject.h" #include "core/rendering/svg/RenderSVGResource.h" #include "core/rendering/svg/SVGPathData.h" @@ -35,7 +36,7 @@ #include "wtf/MathExtras.h" #include "wtf/StdLibExtras.h" -namespace WebCore { +namespace blink { using namespace SVGNames; @@ -90,21 +91,8 @@ bool SVGAnimateMotionElement::hasValidAttributeName() return true; } -bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName) -{ - DEFINE_STATIC_LOCAL(HashSet, supportedAttributes, ()); - if (supportedAttributes.isEmpty()) - supportedAttributes.add(SVGNames::pathAttr); - return supportedAttributes.contains(attrName); -} - void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { - if (!isSupportedAttribute(name)) { - SVGAnimationElement::parseAttribute(name, value); - return; - } - if (name == SVGNames::pathAttr) { m_path = Path(); buildPathFromString(value, m_path); @@ -112,7 +100,7 @@ void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const At return; } - ASSERT_NOT_REACHED(); + SVGAnimationElement::parseAttribute(name, value); } SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const