OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 InvalidatableStyleInterpolation_h | 5 #ifndef InvalidatableStyleInterpolation_h |
6 #define InvalidatableStyleInterpolation_h | 6 #define InvalidatableStyleInterpolation_h |
7 | 7 |
8 #include "core/animation/InterpolationType.h" | 8 #include "core/animation/InterpolationType.h" |
9 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
10 #include "core/animation/PrimitiveInterpolation.h" | 10 #include "core/animation/PrimitiveInterpolation.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const CSSPropertySpecificKeyframe& startKeyframe, | 38 const CSSPropertySpecificKeyframe& startKeyframe, |
39 const CSSPropertySpecificKeyframe& endKeyframe); | 39 const CSSPropertySpecificKeyframe& endKeyframe); |
40 | 40 |
41 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const StyleResolv
erState&) const; | 41 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const StyleResolv
erState&) const; |
42 const InterpolationValue* ensureValidInterpolation(const StyleResolverState&
, const InterpolationValue* underlyingValue) const; | 42 const InterpolationValue* ensureValidInterpolation(const StyleResolverState&
, const InterpolationValue* underlyingValue) const; |
43 bool isCacheValid(const StyleResolverState&, const InterpolationValue* under
lyingValue) const; | 43 bool isCacheValid(const StyleResolverState&, const InterpolationValue* under
lyingValue) const; |
44 bool isNeutralKeyframeActive() const; | 44 bool isNeutralKeyframeActive() const; |
45 bool maybeCachePairwiseConversion(const StyleResolverState*, const Interpola
tionValue* underlyingValue) const; | 45 bool maybeCachePairwiseConversion(const StyleResolverState*, const Interpola
tionValue* underlyingValue) const; |
46 PassOwnPtr<InterpolationValue> convertSingleKeyframe(const CSSPropertySpecif
icKeyframe&, const StyleResolverState&, const InterpolationValue* underlyingValu
e) const; | 46 PassOwnPtr<InterpolationValue> convertSingleKeyframe(const CSSPropertySpecif
icKeyframe&, const StyleResolverState&, const InterpolationValue* underlyingValu
e) const; |
47 void setFlagIfInheritUsed(StyleResolverState&) const; | 47 void setFlagIfInheritUsed(StyleResolverState&) const; |
| 48 double underlyingFraction() const; |
48 | 49 |
49 const Vector<const InterpolationType*>& m_interpolationTypes; | 50 const Vector<const InterpolationType*>& m_interpolationTypes; |
50 const CSSPropertySpecificKeyframe* m_startKeyframe; | 51 const CSSPropertySpecificKeyframe* m_startKeyframe; |
51 const CSSPropertySpecificKeyframe* m_endKeyframe; | 52 const CSSPropertySpecificKeyframe* m_endKeyframe; |
52 double m_currentFraction; | 53 double m_currentFraction; |
53 mutable OwnPtr<PrimitiveInterpolation> m_cachedConversion; | 54 mutable OwnPtr<PrimitiveInterpolation> m_cachedConversion; |
54 mutable InterpolationType::ConversionCheckers m_conversionCheckers; | 55 mutable InterpolationType::ConversionCheckers m_conversionCheckers; |
55 mutable OwnPtr<InterpolationValue> m_cachedValue; | 56 mutable OwnPtr<InterpolationValue> m_cachedValue; |
56 }; | 57 }; |
57 | 58 |
58 DEFINE_TYPE_CASTS(InvalidatableStyleInterpolation, Interpolation, value, value->
isInvalidatableStyleInterpolation(), value.isInvalidatableStyleInterpolation()); | 59 DEFINE_TYPE_CASTS(InvalidatableStyleInterpolation, Interpolation, value, value->
isInvalidatableStyleInterpolation(), value.isInvalidatableStyleInterpolation()); |
59 | 60 |
60 } // namespace blink | 61 } // namespace blink |
61 | 62 |
62 #endif // InvalidatableStyleInterpolation_h | 63 #endif // InvalidatableStyleInterpolation_h |
OLD | NEW |