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

Unified Diff: Source/core/animation/FilterStyleInterpolation.h

Issue 1069313002: Animation: FilterStyleInterpolation for animating filter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ASSERT isValueList || CSSValueNone Created 5 years, 8 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/FilterStyleInterpolation.h
diff --git a/Source/core/animation/FilterStyleInterpolation.h b/Source/core/animation/FilterStyleInterpolation.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e626d14745e72b68b585e0c1f792f08c744bf54
--- /dev/null
+++ b/Source/core/animation/FilterStyleInterpolation.h
@@ -0,0 +1,36 @@
+// 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 FilterStyleInterpolation_h
+#define FilterStyleInterpolation_h
+
+#include "core/animation/ListStyleInterpolation.h"
+#include "core/css/CSSFunctionValue.h"
+
+namespace blink {
+
+class FilterStyleInterpolation : public StyleInterpolation {
+public:
+ typedef CSSValueID NonInterpolableType;
+ typedef ListStyleInterpolationImpl<FilterStyleInterpolation, NonInterpolableType> FilterListStyleInterpolation;
+
+ static PassRefPtrWillBeRawPtr<FilterListStyleInterpolation> maybeCreateList(const CSSValue& start, const CSSValue& end, CSSPropertyID);
+
+ // The following are called by ListStyleInterpolation.
+ static bool canCreateFrom(const CSSValue& start, const CSSValue& end);
+ static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(const CSSValue&, CSSValueID&);
+ static PassRefPtrWillBeRawPtr<CSSFunctionValue> fromInterpolableValue(const InterpolableValue&, CSSValueID, InterpolationRange = RangeAll);
+
+private:
+ FilterStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
+ : StyleInterpolation(start, end, id)
+ {
+ }
+
+ friend class FilterStyleInterpolationTest;
+};
+
+} // namespace blink
+
+#endif // FilterStyleInterpolation_h

Powered by Google App Engine
This is Rietveld 408576698