OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef Interpolation_h | 5 #ifndef Interpolation_h |
6 #define Interpolation_h | 6 #define Interpolation_h |
7 | 7 |
| 8 #include "CSSPropertyNames.h" |
8 #include "core/animation/InterpolableValue.h" | 9 #include "core/animation/InterpolableValue.h" |
9 #include "wtf/RefCounted.h" | 10 #include "wtf/RefCounted.h" |
10 | 11 |
11 namespace WebCore { | 12 namespace WebCore { |
12 | 13 |
13 class StyleResolverState; | 14 class StyleResolverState; |
14 | 15 |
15 class Interpolation : public RefCounted<Interpolation> { | 16 class Interpolation : public RefCounted<Interpolation> { |
16 public: | 17 public: |
17 static PassRefPtr<Interpolation> create(PassOwnPtr<InterpolableValue> start,
PassOwnPtr<InterpolableValue> end) | 18 static PassRefPtr<Interpolation> create(PassOwnPtr<InterpolableValue> start,
PassOwnPtr<InterpolableValue> end) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 LegacyStyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Int
erpolableValue> end, CSSPropertyID id) | 89 LegacyStyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Int
erpolableValue> end, CSSPropertyID id) |
89 : StyleInterpolation(start, end, id) | 90 : StyleInterpolation(start, end, id) |
90 { } | 91 { } |
91 }; | 92 }; |
92 | 93 |
93 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp
olation(), value.isStyleInterpolation()); | 94 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp
olation(), value.isStyleInterpolation()); |
94 DEFINE_TYPE_CASTS(LegacyStyleInterpolation, Interpolation, value, value->isLegac
yStyleInterpolation(), value.isLegacyStyleInterpolation()); | 95 DEFINE_TYPE_CASTS(LegacyStyleInterpolation, Interpolation, value, value->isLegac
yStyleInterpolation(), value.isLegacyStyleInterpolation()); |
95 | 96 |
96 } | 97 } |
97 #endif | 98 #endif |
OLD | NEW |