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

Unified Diff: Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h

Issue 292173009: Web Animations - responsive interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@0519_MySeparation
Patch Set: applyAndSnapshotAnimatableValue Created 6 years, 7 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: 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

Powered by Google App Engine
This is Rietveld 408576698