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

Side by Side Diff: Source/core/animation/InvalidatableStyleInterpolation.h

Issue 1318143005: Add mutableComponent() interface to InterpolationValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698