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

Side by Side Diff: third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h

Issue 2109333002: Replace ASSERT_NOT_REACHED with NOTREACHED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 InvalidatableInterpolation_h 5 #ifndef InvalidatableInterpolation_h
6 #define InvalidatableInterpolation_h 6 #define InvalidatableInterpolation_h
7 7
8 #include "core/animation/InterpolationType.h" 8 #include "core/animation/InterpolationType.h"
9 #include "core/animation/PrimitiveInterpolation.h" 9 #include "core/animation/PrimitiveInterpolation.h"
10 #include "core/animation/PropertyInterpolationTypesMapping.h" 10 #include "core/animation/PropertyInterpolationTypesMapping.h"
(...skipping 12 matching lines...) Expand all
23 const InterpolationTypes& interpolationTypes, 23 const InterpolationTypes& interpolationTypes,
24 PassRefPtr<PropertySpecificKeyframe> startKeyframe, 24 PassRefPtr<PropertySpecificKeyframe> startKeyframe,
25 PassRefPtr<PropertySpecificKeyframe> endKeyframe) 25 PassRefPtr<PropertySpecificKeyframe> endKeyframe)
26 { 26 {
27 return adoptRef(new InvalidatableInterpolation(property, interpolationTy pes, startKeyframe, endKeyframe)); 27 return adoptRef(new InvalidatableInterpolation(property, interpolationTy pes, startKeyframe, endKeyframe));
28 } 28 }
29 29
30 PropertyHandle getProperty() const final { return m_property; } 30 PropertyHandle getProperty() const final { return m_property; }
31 virtual void interpolate(int iteration, double fraction); 31 virtual void interpolate(int iteration, double fraction);
32 bool dependsOnUnderlyingValue() const final; 32 bool dependsOnUnderlyingValue() const final;
33 virtual void apply(InterpolationEnvironment&) const { ASSERT_NOT_REACHED(); } 33 virtual void apply(InterpolationEnvironment&) const { NOTREACHED(); }
34 static void applyStack(const ActiveInterpolations&, InterpolationEnvironment &); 34 static void applyStack(const ActiveInterpolations&, InterpolationEnvironment &);
35 35
36 virtual bool isInvalidatableInterpolation() const { return true; } 36 virtual bool isInvalidatableInterpolation() const { return true; }
37 37
38 private: 38 private:
39 InvalidatableInterpolation( 39 InvalidatableInterpolation(
40 PropertyHandle property, 40 PropertyHandle property,
41 const InterpolationTypes& interpolationTypes, 41 const InterpolationTypes& interpolationTypes,
42 PassRefPtr<PropertySpecificKeyframe> startKeyframe, 42 PassRefPtr<PropertySpecificKeyframe> startKeyframe,
43 PassRefPtr<PropertySpecificKeyframe> endKeyframe) 43 PassRefPtr<PropertySpecificKeyframe> endKeyframe)
(...skipping 28 matching lines...) Expand all
72 mutable std::unique_ptr<PrimitiveInterpolation> m_cachedPairConversion; 72 mutable std::unique_ptr<PrimitiveInterpolation> m_cachedPairConversion;
73 mutable ConversionCheckers m_conversionCheckers; 73 mutable ConversionCheckers m_conversionCheckers;
74 mutable std::unique_ptr<TypedInterpolationValue> m_cachedValue; 74 mutable std::unique_ptr<TypedInterpolationValue> m_cachedValue;
75 }; 75 };
76 76
77 DEFINE_TYPE_CASTS(InvalidatableInterpolation, Interpolation, value, value->isInv alidatableInterpolation(), value.isInvalidatableInterpolation()); 77 DEFINE_TYPE_CASTS(InvalidatableInterpolation, Interpolation, value, value->isInv alidatableInterpolation(), value.isInvalidatableInterpolation());
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // InvalidatableInterpolation_h 81 #endif // InvalidatableInterpolation_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/InterpolationType.h ('k') | third_party/WebKit/Source/core/animation/Keyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698