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

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

Issue 2309963002: Apply custom property animation (Closed)
Patch Set: Rebase Created 4 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 public: 57 public:
58 CSSAnimations(); 58 CSSAnimations();
59 59
60 bool isAnimationForInspector(const Animation&); 60 bool isAnimationForInspector(const Animation&);
61 bool isTransitionAnimationForInspector(const Animation&) const; 61 bool isTransitionAnimationForInspector(const Animation&) const;
62 62
63 static const StylePropertyShorthand& propertiesForTransitionAll(); 63 static const StylePropertyShorthand& propertiesForTransitionAll();
64 static bool isAnimationAffectingProperty(CSSPropertyID); 64 static bool isAnimationAffectingProperty(CSSPropertyID);
65 static bool isAffectedByKeyframesFromScope(const Element&, const TreeScope&); 65 static bool isAffectedByKeyframesFromScope(const Element&, const TreeScope&);
66 static void calculateUpdate(const Element* animatingElement, 66 static bool isAnimatingCustomProperties(const ElementAnimations*);
67 Element&, 67 static bool isCustomPropertyHandle(const PropertyHandle&);
68 const ComputedStyle&, 68 static void calculateAnimationUpdate(CSSAnimationUpdate&,
69 ComputedStyle* parentStyle, 69 const Element* animatingElement,
70 CSSAnimationUpdate&, 70 Element&,
71 StyleResolver*); 71 const ComputedStyle&,
72 ComputedStyle* parentStyle,
73 StyleResolver*);
74 static void calculateCompositorAndTransitionUpdate(
75 const Element* animatingElement,
76 Element&,
77 const ComputedStyle&,
78 ComputedStyle* parentStyle,
79 CSSAnimationUpdate&);
72 static void snapshotCompositorKeyframes(Element&, 80 static void snapshotCompositorKeyframes(Element&,
73 CSSAnimationUpdate&, 81 CSSAnimationUpdate&,
74 const ComputedStyle&, 82 const ComputedStyle&,
75 const ComputedStyle* parentStyle); 83 const ComputedStyle* parentStyle);
76 84
77 void setPendingUpdate(const CSSAnimationUpdate& update) { 85 void setPendingUpdate(const CSSAnimationUpdate& update) {
78 clearPendingUpdate(); 86 clearPendingUpdate();
79 m_pendingUpdate.copy(update); 87 m_pendingUpdate.copy(update);
80 } 88 }
81 void clearPendingUpdate() { m_pendingUpdate.clear(); } 89 void clearPendingUpdate() { m_pendingUpdate.clear(); }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 CSSAnimationUpdate m_pendingUpdate; 149 CSSAnimationUpdate m_pendingUpdate;
142 150
143 ActiveInterpolationsMap m_previousActiveInterpolationsForAnimations; 151 ActiveInterpolationsMap m_previousActiveInterpolationsForAnimations;
144 152
145 static void calculateCompositorAnimationUpdate( 153 static void calculateCompositorAnimationUpdate(
146 CSSAnimationUpdate&, 154 CSSAnimationUpdate&,
147 const Element* animatingElement, 155 const Element* animatingElement,
148 Element&, 156 Element&,
149 const ComputedStyle&, 157 const ComputedStyle&,
150 const ComputedStyle* parentStyle); 158 const ComputedStyle* parentStyle);
151 static void calculateAnimationUpdate(CSSAnimationUpdate&,
152 const Element* animatingElement,
153 Element&,
154 const ComputedStyle&,
155 ComputedStyle* parentStyle,
156 StyleResolver*);
157 static void calculateTransitionUpdate(CSSAnimationUpdate&, 159 static void calculateTransitionUpdate(CSSAnimationUpdate&,
158 const Element* animatingElement, 160 const Element* animatingElement,
159 const ComputedStyle&); 161 const ComputedStyle&);
160 static void calculateTransitionUpdateForProperty( 162 static void calculateTransitionUpdateForProperty(
161 CSSPropertyID, 163 CSSPropertyID,
162 const CSSTransitionData&, 164 const CSSTransitionData&,
163 size_t transitionIndex, 165 size_t transitionIndex,
164 const ComputedStyle& oldStyle, 166 const ComputedStyle& oldStyle,
165 const ComputedStyle&, 167 const ComputedStyle&,
166 const TransitionMap* activeTransitions, 168 const TransitionMap* activeTransitions,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 223
222 Member<Element> m_transitionTarget; 224 Member<Element> m_transitionTarget;
223 const CSSPropertyID m_property; 225 const CSSPropertyID m_property;
224 AnimationEffectReadOnly::Phase m_previousPhase; 226 AnimationEffectReadOnly::Phase m_previousPhase;
225 }; 227 };
226 }; 228 };
227 229
228 } // namespace blink 230 } // namespace blink
229 231
230 #endif 232 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698