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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 InterpolationEffect_h 5 #ifndef InterpolationEffect_h
6 #define InterpolationEffect_h 6 #define InterpolationEffect_h
7 7
8 #include "core/animation/Interpolation.h" 8 #include "core/animation/Interpolation.h"
9 #include "core/animation/Keyframe.h" 9 #include "core/animation/Keyframe.h"
10 #include "platform/RuntimeEnabledFeatures.h" 10 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 10 matching lines...) Expand all
21 return adoptRefWillBeNoop(new InterpolationEffect()); 21 return adoptRefWillBeNoop(new InterpolationEffect());
22 } 22 }
23 23
24 void getActiveInterpolations(double fraction, double iterationDuration, OwnP trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const; 24 void getActiveInterpolations(double fraction, double iterationDuration, OwnP trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const;
25 25
26 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo) 26 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo)
27 { 27 {
28 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo)); 28 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo));
29 } 29 }
30 30
31 void addInterpolationsFromKeyframes(CSSPropertyID, Element*, const LayoutSty le* baseStyle, Keyframe::PropertySpecificKeyframe& keyframeA, Keyframe::Property SpecificKeyframe& keyframeB, double applyFrom, double applyTo); 31 void addInterpolationsFromKeyframes(CSSPropertyID, Element*, const ComputedS tyle* baseStyle, Keyframe::PropertySpecificKeyframe& keyframeA, Keyframe::Proper tySpecificKeyframe& keyframeB, double applyFrom, double applyTo);
32 32
33 template<typename T> 33 template<typename T>
34 inline void forEachInterpolation(const T& callback) 34 inline void forEachInterpolation(const T& callback)
35 { 35 {
36 for (auto& record : m_interpolations) 36 for (auto& record : m_interpolations)
37 callback(*record->m_interpolation); 37 callback(*record->m_interpolation);
38 } 38 }
39 39
40 DECLARE_TRACE(); 40 DECLARE_TRACE();
41 41
(...skipping 29 matching lines...) Expand all
71 { 71 {
72 } 72 }
73 }; 73 };
74 74
75 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord>> m_interpolations; 75 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord>> m_interpolations;
76 }; 76 };
77 77
78 } // namespace blink 78 } // namespace blink
79 79
80 #endif // InterpolationEffect_h 80 #endif // InterpolationEffect_h
OLDNEW
« no previous file with comments | « Source/core/animation/ElementAnimations.cpp ('k') | Source/core/animation/InterpolationEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698