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

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

Issue 1418003008: Web Animations: Add SVGPointListInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_fixSVGNeutral
Patch Set: Rebase Created 5 years, 1 month 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/SVGPointListInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.h b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1ec5bf5a53c3ace86d113a52695d54d126b0af1
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.h
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SVGPointListInterpolationType_h
+#define SVGPointListInterpolationType_h
+
+#include "core/animation/SVGInterpolationType.h"
+
+namespace blink {
+
+class SVGPointListInterpolationType : public SVGInterpolationType {
+public:
+ SVGPointListInterpolationType(const QualifiedName& attribute)
+ : SVGInterpolationType(attribute)
+ { }
+
+private:
+ PassOwnPtr<InterpolationValue> maybeConvertNeutral(const UnderlyingValue&, ConversionCheckers&) const final;
+ PassOwnPtr<InterpolationValue> maybeConvertSVGValue(const SVGPropertyBase& svgValue) const final;
+ PassOwnPtr<PairwisePrimitiveInterpolation> mergeSingleConversions(InterpolationValue& startValue, InterpolationValue& endValue) const final;
+ void composite(UnderlyingValue&, double underlyingFraction, const InterpolationValue&) const final;
+ PassRefPtrWillBeRawPtr<SVGPropertyBase> appliedSVGValue(const InterpolableValue&, const NonInterpolableValue*) const final;
+};
+
+} // namespace blink
+
+#endif // SVGPointListInterpolationType_h

Powered by Google App Engine
This is Rietveld 408576698