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

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

Issue 2236193002: WIP: Implement CSS transitions on top of InterpolationTypes instead of AnimatableValues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_environmentStyle
Patch Set: Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 struct RunningTransition { 117 struct RunningTransition {
118 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 118 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
119 public: 119 public:
120 DEFINE_INLINE_TRACE() 120 DEFINE_INLINE_TRACE()
121 { 121 {
122 visitor->trace(animation); 122 visitor->trace(animation);
123 } 123 }
124 124
125 Member<Animation> animation; 125 Member<Animation> animation;
126 const AnimatableValue* from; 126 RefPtr<AnimatableValue> from;
127 const AnimatableValue* to; 127 RefPtr<AnimatableValue> to;
128 RefPtr<AnimatableValue> reversingAdjustedStartValue; 128 RefPtr<AnimatableValue> reversingAdjustedStartValue;
129 double reversingShorteningFactor; 129 double reversingShorteningFactor;
130 }; 130 };
131 131
132 HeapVector<Member<RunningAnimation>> m_runningAnimations; 132 HeapVector<Member<RunningAnimation>> m_runningAnimations;
133 133
134 using TransitionMap = HeapHashMap<CSSPropertyID, RunningTransition>; 134 using TransitionMap = HeapHashMap<CSSPropertyID, RunningTransition>;
135 TransitionMap m_transitions; 135 TransitionMap m_transitions;
136 136
137 CSSAnimationUpdate m_pendingUpdate; 137 CSSAnimationUpdate m_pendingUpdate;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 Member<Element> m_transitionTarget; 192 Member<Element> m_transitionTarget;
193 const CSSPropertyID m_property; 193 const CSSPropertyID m_property;
194 AnimationEffect::Phase m_previousPhase; 194 AnimationEffect::Phase m_previousPhase;
195 }; 195 };
196 }; 196 };
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif 200 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698