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

Unified Diff: Source/core/svg/SVGAnimateElement.cpp

Issue 174293005: Fix crash in which elementData() might be null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments. Created 6 years, 10 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/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimateElement.cpp
diff --git a/Source/core/svg/SVGAnimateElement.cpp b/Source/core/svg/SVGAnimateElement.cpp
index df0ffceb40bae5f0358658e46009d005c3e8cf87..6d50d9cf1b896287adef85647b796a60979a9a9c 100644
--- a/Source/core/svg/SVGAnimateElement.cpp
+++ b/Source/core/svg/SVGAnimateElement.cpp
@@ -202,6 +202,7 @@ void SVGAnimateElement::resetAnimatedType()
return;
if (shouldApply == ApplyXMLAnimation) {
+ targetElement->invalidateSVGAttributes();
adamk 2014/02/24 21:33:01 Why did you put this here instead of next to the s
chrishtr 2014/02/24 21:46:19 It is indeed the case that not all callers of thes
chrishtr 2014/02/24 22:30:46 Done.
// SVG DOM animVal animation code-path.
m_animatedProperties = animator->findAnimatedPropertiesForAttributeName(targetElement, attributeName);
SVGElementAnimatedPropertyList::const_iterator end = m_animatedProperties.end();
@@ -225,6 +226,7 @@ void SVGAnimateElement::resetAnimatedType()
String baseValue;
if (shouldApply == ApplyCSSAnimation) {
+ targetElement->invalidateSVGAttributes();
adamk 2014/02/24 21:33:01 Same question as above.
chrishtr 2014/02/24 22:30:46 Done.
ASSERT(SVGAnimationElement::isTargetAttributeCSSProperty(targetElement, attributeName));
computeCSSPropertyValue(targetElement, cssPropertyID(attributeName.localName()), baseValue);
}
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698