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

Unified Diff: third_party/WebKit/Source/core/animation/SVGInterpolation.h

Issue 1512483004: Simplify and test SVGInterpolation effect application (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove removal Created 5 years 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
Index: third_party/WebKit/Source/core/animation/SVGInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/SVGInterpolation.h b/third_party/WebKit/Source/core/animation/SVGInterpolation.h
index e9e0af962c766c4dbf2b80f77ac2d75afafa0920..986395b14b2163afa5652b94b66deca98ca8574f 100644
--- a/third_party/WebKit/Source/core/animation/SVGInterpolation.h
+++ b/third_party/WebKit/Source/core/animation/SVGInterpolation.h
@@ -24,7 +24,10 @@ public:
return PropertyHandle(attributeName());
}
- void apply(SVGElement&) const;
+ void apply(SVGElement& targetElement) const
+ {
+ targetElement.setWebAnimatedAttribute(attributeName(), interpolatedValue(targetElement));
+ }
virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const = 0;

Powered by Google App Engine
This is Rietveld 408576698