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

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

Issue 1305383006: Oilpan: Unship CSSValues and AnimatableValues 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 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 "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 12 matching lines...) Expand all
23 virtual bool isStyleInterpolation() const { return false; } 23 virtual bool isStyleInterpolation() const { return false; }
24 virtual bool isInvalidatableStyleInterpolation() const { return false; } 24 virtual bool isInvalidatableStyleInterpolation() const { return false; }
25 virtual bool isLegacyStyleInterpolation() const { return false; } 25 virtual bool isLegacyStyleInterpolation() const { return false; }
26 virtual bool isSVGInterpolation() const { return false; } 26 virtual bool isSVGInterpolation() const { return false; }
27 27
28 virtual PropertyHandle property() const = 0; 28 virtual PropertyHandle property() const = 0;
29 29
30 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
31 31
32 protected: 32 protected:
33 const OwnPtrWillBeMember<InterpolableValue> m_start; 33 const OwnPtr<InterpolableValue> m_start;
34 const OwnPtrWillBeMember<InterpolableValue> m_end; 34 const OwnPtr<InterpolableValue> m_end;
35 35
36 mutable double m_cachedFraction; 36 mutable double m_cachedFraction;
37 mutable int m_cachedIteration; 37 mutable int m_cachedIteration;
38 mutable OwnPtrWillBeMember<InterpolableValue> m_cachedValue; 38 mutable OwnPtr<InterpolableValue> m_cachedValue;
39 39
40 Interpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWil lBeRawPtr<InterpolableValue> end); 40 Interpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableVa lue> end);
41 41
42 private: 42 private:
43 InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.g et(); } 43 InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.g et(); }
44 44
45 friend class AnimationInterpolableValueTest; 45 friend class AnimationInterpolableValueTest;
46 friend class AnimationInterpolationEffectTest; 46 friend class AnimationInterpolationEffectTest;
47 friend class AnimationDoubleStyleInterpolationTest; 47 friend class AnimationDoubleStyleInterpolationTest;
48 friend class AnimationVisibilityStyleInterpolationTest; 48 friend class AnimationVisibilityStyleInterpolationTest;
49 friend class AnimationColorStyleInterpolationTest; 49 friend class AnimationColorStyleInterpolationTest;
50 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest; 50 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // Interpolation_h 55 #endif // Interpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolableValueTest.cpp ('k') | Source/core/animation/Interpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698