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

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

Issue 1587533002: Add composition support for SVG Web Animation of x, y, dx, dy attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 4 years, 11 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
Index: third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.h b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.h
similarity index 67%
copy from third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.h
copy to third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.h
index d9b42ce52d7174b634bb4317b3884207bf64c145..0f8419036f79017e8b9ca17ecf7d55cb658a47df 100644
--- a/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.h
@@ -2,21 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SVGLengthInterpolationType_h
-#define SVGLengthInterpolationType_h
+#ifndef SVGLengthListInterpolationType_h
+#define SVGLengthListInterpolationType_h
+#include "core/SVGNames.h"
#include "core/animation/SVGInterpolationType.h"
-
#include "core/svg/SVGLength.h"
namespace blink {
-class SVGLengthContext;
enum class SVGLengthMode;
-class SVGLengthInterpolationType : public SVGInterpolationType {
+class SVGLengthListInterpolationType : public SVGInterpolationType {
public:
- SVGLengthInterpolationType(const QualifiedName& attribute)
+ SVGLengthListInterpolationType(const QualifiedName& attribute)
: SVGInterpolationType(attribute)
, m_unitMode(SVGLength::lengthModeForAnimatedLengthAttribute(attribute))
, m_negativeValuesForbidden(SVGLength::negativeValuesForbiddenForAnimatedLengthAttribute(attribute))
@@ -25,8 +24,9 @@ public:
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;
- PassRefPtrWillBeRawPtr<SVGPropertyBase> appliedSVGValue(const InterpolableValue&, const NonInterpolableValue*, const SVGLengthContext&) const;
void apply(const InterpolableValue&, const NonInterpolableValue*, InterpolationEnvironment&) const final;
const SVGLengthMode m_unitMode;
@@ -35,4 +35,4 @@ private:
} // namespace blink
-#endif // SVGLengthInterpolationType_h
+#endif // SVGLengthListInterpolationType_h

Powered by Google App Engine
This is Rietveld 408576698