Index: third_party/WebKit/Source/core/animation/StackableInterpolation.h |
diff --git a/third_party/WebKit/Source/core/animation/StackableInterpolation.h b/third_party/WebKit/Source/core/animation/StackableInterpolation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f60a98729a79cf85d54ea315d987136869c4e32e |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/animation/StackableInterpolation.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2016 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 StackableInterpolation_h |
+#define StackableInterpolation_h |
+ |
+#include "core/animation/Interpolation.h" |
+ |
+namespace blink { |
+ |
+class InterpolationEnvironment; |
+class TypedInterpolationValue; |
+class UnderlyingValueOwner; |
+ |
+class StackableInterpolation : public Interpolation { |
+public: |
+ static void applyStack(const ActiveInterpolations&, InterpolationEnvironment&); |
+ |
+ virtual bool isStackableInterpolation() const { return true; } |
+ |
+protected: |
+ virtual std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue(const InterpolationEnvironment&) const = 0; |
+ virtual const TypedInterpolationValue* ensureValidInterpolation(const InterpolationEnvironment&, const UnderlyingValueOwner&) const = 0; |
+ virtual void setFlagIfInheritUsed(InterpolationEnvironment&) const {} |
+ virtual double underlyingFraction() const = 0; |
+}; |
+ |
+DEFINE_TYPE_CASTS(StackableInterpolation, Interpolation, value, value->isStackableInterpolation(), value.isStackableInterpolation()); |
+ |
+} // namespace blink |
+ |
+#endif // StackableInterpolation_h |