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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp

Issue 2817643003: Invalidate the "values cache" when resetting animated value state (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/core/svg/SVGAnimationElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
index 7daff2e083803e10b7fddf5b8a69a0cfc22a746e..52d4580d1a681f82f89d419350639e3c7c31ec5b 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
@@ -221,11 +221,15 @@ void SVGAnimationElement::SvgAttributeChanged(const QualifiedName& attr_name) {
SVGSMILElement::SvgAttributeChanged(attr_name);
}
+void SVGAnimationElement::InvalidatedValuesCache() {
+ last_values_animation_from_ = String();
+ last_values_animation_to_ = String();
+}
+
void SVGAnimationElement::AnimationAttributeChanged() {
// Assumptions may not hold after an attribute change.
animation_valid_ = false;
- last_values_animation_from_ = String();
- last_values_animation_to_ = String();
+ InvalidatedValuesCache();
SetInactive();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimationElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698