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 DeferredLegacyStyleInterpolation_h | 5 #ifndef DeferredLegacyStyleInterpolation_h |
6 #define DeferredLegacyStyleInterpolation_h | 6 #define DeferredLegacyStyleInterpolation_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/LegacyStyleInterpolation.h" | 9 #include "core/animation/LegacyStyleInterpolation.h" |
10 #include "core/animation/StyleInterpolation.h" | 10 #include "core/animation/StyleInterpolation.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(Nulla
bleCSSValue start, NullableCSSValue end, CSSPropertyID id) | 24 static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(Nulla
bleCSSValue start, NullableCSSValue end, CSSPropertyID id) |
25 { | 25 { |
26 return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, en
d, id)); | 26 return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, en
d, id)); |
27 } | 27 } |
28 | 28 |
29 virtual void apply(StyleResolverState&) const override; | 29 virtual void apply(StyleResolverState&) const override; |
30 | 30 |
31 DECLARE_VIRTUAL_TRACE(); | 31 DECLARE_VIRTUAL_TRACE(); |
32 | 32 |
33 static bool interpolationRequiresStyleResolve(const CSSValue&); | 33 static bool interpolationRequiresStyleResolve(const CSSValue); |
34 static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&); | 34 static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue); |
35 static bool interpolationRequiresStyleResolve(const CSSImageValue&); | 35 static bool interpolationRequiresStyleResolve(const CSSImageValue&); |
36 static bool interpolationRequiresStyleResolve(const CSSShadowValue&); | 36 static bool interpolationRequiresStyleResolve(const CSSShadowValue&); |
37 static bool interpolationRequiresStyleResolve(const CSSSVGDocumentValue&); | 37 static bool interpolationRequiresStyleResolve(const CSSSVGDocumentValue&); |
38 static bool interpolationRequiresStyleResolve(const CSSValueList&); | 38 static bool interpolationRequiresStyleResolve(const CSSValueList&); |
39 static bool interpolationRequiresStyleResolve(const CSSBasicShape&); | 39 static bool interpolationRequiresStyleResolve(const CSSBasicShape&); |
40 | 40 |
41 void underlyingStyleChanged() { m_outdated = true; } | 41 void underlyingStyleChanged() { m_outdated = true; } |
42 | 42 |
43 virtual bool isDeferredLegacyStyleInterpolation() const override final { ret
urn true; } | 43 virtual bool isDeferredLegacyStyleInterpolation() const override final { ret
urn true; } |
44 | 44 |
(...skipping 10 matching lines...) Expand all Loading... |
55 NullableCSSValue m_endCSSValue; | 55 NullableCSSValue m_endCSSValue; |
56 mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation; | 56 mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation; |
57 mutable bool m_outdated; | 57 mutable bool m_outdated; |
58 }; | 58 }; |
59 | 59 |
60 DEFINE_TYPE_CASTS(DeferredLegacyStyleInterpolation, StyleInterpolation, value, v
alue->isDeferredLegacyStyleInterpolation(), value.isDeferredLegacyStyleInterpola
tion()); | 60 DEFINE_TYPE_CASTS(DeferredLegacyStyleInterpolation, StyleInterpolation, value, v
alue->isDeferredLegacyStyleInterpolation(), value.isDeferredLegacyStyleInterpola
tion()); |
61 | 61 |
62 } | 62 } |
63 | 63 |
64 #endif | 64 #endif |
OLD | NEW |