| 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
|
|
|