Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 19798009: Introduce toSVGSMILElement, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SVGSMILElement.cpp
diff --git a/Source/core/svg/animation/SVGSMILElement.cpp b/Source/core/svg/animation/SVGSMILElement.cpp
index b84205a95ed9eb8f7a5adc1f246e7e84a17ed50e..f28173bb35b412eb580bd968e2fcd6225a3d30e3 100644
--- a/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/Source/core/svg/animation/SVGSMILElement.cpp
@@ -536,8 +536,7 @@ void SVGSMILElement::connectConditions()
condition.m_syncbase = 0;
continue;
}
- SVGSMILElement* syncbase = static_cast<SVGSMILElement*>(condition.m_syncbase.get());
- syncbase->addTimeDependent(this);
+ toSVGSMILElement(condition.m_syncbase.get())->addTimeDependent(this);
}
}
}
@@ -564,10 +563,8 @@ void SVGSMILElement::disconnectConditions()
condition.m_eventListener->disconnectAnimation();
condition.m_eventListener = 0;
} else if (condition.m_type == Condition::Syncbase) {
- if (condition.m_syncbase) {
- ASSERT(isSMILElement(condition.m_syncbase.get()));
- static_cast<SVGSMILElement*>(condition.m_syncbase.get())->removeTimeDependent(this);
- }
+ if (condition.m_syncbase)
+ toSVGSMILElement(condition.m_syncbase.get())->removeTimeDependent(this);
}
condition.m_syncbase = 0;
}
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698