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

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

Issue 2627793002: Remove unused code in InvalidatableInterpolation (Closed)
Patch Set: Simplify test in response to review Created 3 years, 11 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 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 "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/InterpolableValue.h" 9 #include "core/animation/InterpolableValue.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 15 matching lines...) Expand all
26 virtual void interpolate(int iteration, double fraction) = 0; 26 virtual void interpolate(int iteration, double fraction) = 0;
27 27
28 virtual bool isInvalidatableInterpolation() const { return false; } 28 virtual bool isInvalidatableInterpolation() const { return false; }
29 virtual bool isLegacyStyleInterpolation() const { return false; } 29 virtual bool isLegacyStyleInterpolation() const { return false; }
30 30
31 virtual PropertyHandle getProperty() const = 0; 31 virtual PropertyHandle getProperty() const = 0;
32 virtual bool dependsOnUnderlyingValue() const { return false; } 32 virtual bool dependsOnUnderlyingValue() const { return false; }
33 33
34 protected: 34 protected:
35 Interpolation() {} 35 Interpolation() {}
36
37 virtual InterpolableValue* getCachedValueForTesting() const = 0;
38
39 friend class AnimationInterpolableValueTest;
40 friend class AnimationInterpolationEffectTest;
41 friend class AnimationDoubleStyleInterpolationTest;
42 friend class AnimationVisibilityStyleInterpolationTest;
43 }; 36 };
44 37
45 using ActiveInterpolations = Vector<RefPtr<Interpolation>, 1>; 38 using ActiveInterpolations = Vector<RefPtr<Interpolation>, 1>;
46 39
47 } // namespace blink 40 } // namespace blink
48 41
49 #endif // Interpolation_h 42 #endif // Interpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698