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..e5173667a9112edeeb285676f3fe318e975923ec 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)) { |
tkent
2013/12/04 05:33:16
This is still incorrect. Imagine that m_syncbase
gyuyoung-inactive
2013/12/04 05:54:45
I fixed this as below,
if (!condition.m_syncbase
|
condition.m_syncbase = 0; |
continue; |
} |