Index: Source/core/svg/animation/SVGSMILElement.cpp |
diff --git a/Source/core/svg/animation/SVGSMILElement.cpp b/Source/core/svg/animation/SVGSMILElement.cpp |
index e583a7be96ed0c4e3f61e079df12b3ed232046ab..c8a3014aa6b709f073034e01da592986037b42e5 100644 |
--- a/Source/core/svg/animation/SVGSMILElement.cpp |
+++ b/Source/core/svg/animation/SVGSMILElement.cpp |
@@ -460,14 +460,6 @@ bool SVGSMILElement::parseCondition(const String& value, BeginOrEnd beginOrEnd) |
return true; |
} |
-bool SVGSMILElement::isSMILElement(Node* node) |
-{ |
- if (!node) |
- return false; |
- return node->hasTagName(SVGNames::setTag) || node->hasTagName(SVGNames::animateTag) || node->hasTagName(SVGNames::animateMotionTag) |
- || node->hasTagName(SVGNames::animateTransformTag) || node->hasTagName(SVGNames::animateColorTag); |
-} |
- |
void SVGSMILElement::parseBeginOrEnd(const String& parseString, BeginOrEnd beginOrEnd) |
{ |
Vector<SMILTimeWithOrigin>& timeList = beginOrEnd == Begin ? m_beginTimes : m_endTimes; |
@@ -586,7 +578,7 @@ void SVGSMILElement::connectConditions() |
} else if (condition.m_type == Condition::Syncbase) { |
ASSERT(!condition.m_baseID.isEmpty()); |
condition.m_syncbase = treeScope().getElementById(condition.m_baseID); |
- if (!isSMILElement(condition.m_syncbase.get())) { |
+ if (!condition.m_syncbase || !isSVGSMILElement(*condition.m_syncbase)) { |
condition.m_syncbase = 0; |
continue; |
} |