Index: Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h |
diff --git a/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h b/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..414a5658702e0a1d409d24490904fbfe2b943420 |
--- /dev/null |
+++ b/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h |
@@ -0,0 +1,47 @@ |
+// Copyright 2014 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 DeferredLegacyStyleInterpolation_h |
+#define DeferredLegacyStyleInterpolation_h |
+ |
+#include "core/animation/interpolation/StyleInterpolation.h" |
+#include "core/css/CSSValue.h" |
+ |
+namespace WebCore { |
+ |
+class CSSPrimitiveValue; |
+class CSSShadowValue; |
+class CSSValueList; |
+ |
+class DeferredLegacyStyleInterpolation : public StyleInterpolation { |
+public: |
+ static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id) |
+ { |
+ return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, end, id)); |
+ } |
+ |
+ virtual void apply(StyleResolverState&) const OVERRIDE; |
+ |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
+ static bool interpolationRequiresStyleResolve(const CSSValue&); |
+ static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&); |
+ static bool interpolationRequiresStyleResolve(const CSSShadowValue&); |
+ static bool interpolationRequiresStyleResolve(const CSSValueList&); |
+ |
+private: |
+ DeferredLegacyStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id) |
+ : StyleInterpolation(InterpolableNumber::create(0), InterpolableNumber::create(1), id) |
+ , m_startCSSValue(start) |
+ , m_endCSSValue(end) |
+ { |
+ } |
+ |
+ RefPtrWillBeRawPtr<CSSValue> m_startCSSValue; |
+ RefPtrWillBeRawPtr<CSSValue> m_endCSSValue; |
+}; |
+ |
+} |
+ |
+#endif |