| Index: Source/core/svg/SVGMPathElement.cpp
|
| diff --git a/Source/core/svg/SVGMPathElement.cpp b/Source/core/svg/SVGMPathElement.cpp
|
| index e316d98ff26685b3de7966b55d412d204adc9cc6..991b428e3a183a6cc698f58d31b51e3c099e19a5 100644
|
| --- a/Source/core/svg/SVGMPathElement.cpp
|
| +++ b/Source/core/svg/SVGMPathElement.cpp
|
| @@ -137,9 +137,7 @@ void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName)
|
| SVGPathElement* SVGMPathElement::pathElement()
|
| {
|
| Element* target = targetElementFromIRIString(hrefString(), document());
|
| - if (target && target->hasTagName(SVGNames::pathTag))
|
| - return toSVGPathElement(target);
|
| - return 0;
|
| + return isSVGPathElement(target) ? toSVGPathElement(target) : 0;
|
| }
|
|
|
| void SVGMPathElement::targetPathChanged()
|
| @@ -149,7 +147,7 @@ void SVGMPathElement::targetPathChanged()
|
|
|
| void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
|
| {
|
| - if (parent && parent->hasTagName(SVGNames::animateMotionTag))
|
| + if (isSVGAnimateMotionElement(parent))
|
| toSVGAnimateMotionElement(parent)->updateAnimationPath();
|
| }
|
|
|
|
|