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

Side by Side Diff: Source/core/animation/css/CSSAnimations.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 /* 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 WTF_MAKE_NONCOPYABLE(CSSAnimations); 53 WTF_MAKE_NONCOPYABLE(CSSAnimations);
54 DISALLOW_ALLOCATION(); 54 DISALLOW_ALLOCATION();
55 public: 55 public:
56 CSSAnimations(); 56 CSSAnimations();
57 57
58 const AtomicString getAnimationNameForInspector(const AnimationPlayer&); 58 const AtomicString getAnimationNameForInspector(const AnimationPlayer&);
59 bool isTransitionAnimationForInspector(const AnimationPlayer&) const; 59 bool isTransitionAnimationForInspector(const AnimationPlayer&) const;
60 60
61 static const StylePropertyShorthand& propertiesForTransitionAll(); 61 static const StylePropertyShorthand& propertiesForTransitionAll();
62 static bool isAllowedAnimation(CSSPropertyID); 62 static bool isAllowedAnimation(CSSPropertyID);
63 static PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> calculateUpdate(const Elem ent* animatingElement, Element&, const LayoutStyle&, LayoutStyle* parentStyle, S tyleResolver*); 63 static PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> calculateUpdate(const Elem ent* animatingElement, Element&, const ComputedStyle&, ComputedStyle* parentStyl e, StyleResolver*);
64 64
65 void setPendingUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> update) { m _pendingUpdate = update; } 65 void setPendingUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> update) { m _pendingUpdate = update; }
66 void maybeApplyPendingUpdate(Element*); 66 void maybeApplyPendingUpdate(Element*);
67 bool isEmpty() const { return m_animations.isEmpty() && m_transitions.isEmpt y() && !m_pendingUpdate; } 67 bool isEmpty() const { return m_animations.isEmpty() && m_transitions.isEmpt y() && !m_pendingUpdate; }
68 void cancel(); 68 void cancel();
69 69
70 DECLARE_TRACE(); 70 DECLARE_TRACE();
71 71
72 private: 72 private:
73 class RunningAnimation final : public RefCountedWillBeGarbageCollectedFinali zed<RunningAnimation> { 73 class RunningAnimation final : public RefCountedWillBeGarbageCollectedFinali zed<RunningAnimation> {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 using AnimationMap = WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<Runn ingAnimation>>; 117 using AnimationMap = WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<Runn ingAnimation>>;
118 AnimationMap m_animations; 118 AnimationMap m_animations;
119 119
120 using TransitionMap = WillBeHeapHashMap<CSSPropertyID, RunningTransition>; 120 using TransitionMap = WillBeHeapHashMap<CSSPropertyID, RunningTransition>;
121 TransitionMap m_transitions; 121 TransitionMap m_transitions;
122 122
123 OwnPtrWillBeMember<CSSAnimationUpdate> m_pendingUpdate; 123 OwnPtrWillBeMember<CSSAnimationUpdate> m_pendingUpdate;
124 124
125 WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<Interpolation>> m_previo usActiveInterpolationsForAnimations; 125 WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<Interpolation>> m_previo usActiveInterpolationsForAnimations;
126 126
127 static void calculateAnimationUpdate(CSSAnimationUpdate*, const Element* ani matingElement, Element&, const LayoutStyle&, LayoutStyle* parentStyle, StyleReso lver*); 127 static void calculateAnimationUpdate(CSSAnimationUpdate*, const Element* ani matingElement, Element&, const ComputedStyle&, ComputedStyle* parentStyle, Style Resolver*);
128 static void calculateTransitionUpdate(CSSAnimationUpdate*, const Element* an imatingElement, const LayoutStyle&); 128 static void calculateTransitionUpdate(CSSAnimationUpdate*, const Element* an imatingElement, const ComputedStyle&);
129 static void calculateTransitionUpdateForProperty(CSSPropertyID, CSSPropertyI D eventId, const CSSTransitionData&, size_t transitionIndex, const LayoutStyle& oldStyle, const LayoutStyle&, const TransitionMap* activeTransitions, CSSAnimati onUpdate*, const Element*); 129 static void calculateTransitionUpdateForProperty(CSSPropertyID, CSSPropertyI D eventId, const CSSTransitionData&, size_t transitionIndex, const ComputedStyle & oldStyle, const ComputedStyle&, const TransitionMap* activeTransitions, CSSAni mationUpdate*, const Element*);
130 130
131 static void calculateAnimationActiveInterpolations(CSSAnimationUpdate*, cons t Element* animatingElement, double timelineCurrentTime); 131 static void calculateAnimationActiveInterpolations(CSSAnimationUpdate*, cons t Element* animatingElement, double timelineCurrentTime);
132 static void calculateTransitionActiveInterpolations(CSSAnimationUpdate*, con st Element* animatingElement, double timelineCurrentTime); 132 static void calculateTransitionActiveInterpolations(CSSAnimationUpdate*, con st Element* animatingElement, double timelineCurrentTime);
133 133
134 class AnimationEventDelegate final : public AnimationNode::EventDelegate { 134 class AnimationEventDelegate final : public AnimationNode::EventDelegate {
135 public: 135 public:
136 AnimationEventDelegate(Element* animationTarget, const AtomicString& nam e) 136 AnimationEventDelegate(Element* animationTarget, const AtomicString& nam e)
137 : m_animationTarget(animationTarget) 137 : m_animationTarget(animationTarget)
138 , m_name(name) 138 , m_name(name)
139 , m_previousPhase(AnimationNode::PhaseNone) 139 , m_previousPhase(AnimationNode::PhaseNone)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 RawPtrWillBeMember<Element> m_transitionTarget; 177 RawPtrWillBeMember<Element> m_transitionTarget;
178 const CSSPropertyID m_property; 178 const CSSPropertyID m_property;
179 AnimationNode::Phase m_previousPhase; 179 AnimationNode::Phase m_previousPhase;
180 }; 180 };
181 }; 181 };
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif 185 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimationUpdate.h ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698