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

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

Issue 1218943002: Compositor animations for Independent CSS Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add Manual Tests and fix bug with cancel tests Created 5 years, 5 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
« no previous file with comments | « Source/core/animation/ElementAnimations.cpp ('k') | Source/core/animation/KeyframeEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void downgradeToNormal() { m_priority = DefaultPriority; } 94 void downgradeToNormal() { m_priority = DefaultPriority; }
95 95
96 protected: 96 protected:
97 void applyEffects(); 97 void applyEffects();
98 void clearEffects(); 98 void clearEffects();
99 virtual void updateChildrenAndEffects() const override; 99 virtual void updateChildrenAndEffects() const override;
100 virtual void attach(Animation*) override; 100 virtual void attach(Animation*) override;
101 virtual void detach() override; 101 virtual void detach() override;
102 virtual void specifiedTimingChanged() override; 102 virtual void specifiedTimingChanged() override;
103 virtual double calculateTimeToEffectChange(bool forwards, double inheritedTi me, double timeToNextIteration) const override; 103 virtual double calculateTimeToEffectChange(bool forwards, double inheritedTi me, double timeToNextIteration) const override;
104 virtual bool hasIncompatibleStyle();
105 bool hasMultipleTransformProperties() const;
104 106
105 private: 107 private:
106 KeyframeEffect(Element*, PassRefPtrWillBeRawPtr<EffectModel>, const Timing&, Priority, PassOwnPtrWillBeRawPtr<EventDelegate>); 108 KeyframeEffect(Element*, PassRefPtrWillBeRawPtr<EffectModel>, const Timing&, Priority, PassOwnPtrWillBeRawPtr<EventDelegate>);
107 109
108 RawPtrWillBeMember<Element> m_target; 110 RawPtrWillBeMember<Element> m_target;
109 RefPtrWillBeMember<EffectModel> m_model; 111 RefPtrWillBeMember<EffectModel> m_model;
110 RawPtrWillBeMember<SampledEffect> m_sampledEffect; 112 RawPtrWillBeMember<SampledEffect> m_sampledEffect;
111 113
112 Priority m_priority; 114 Priority m_priority;
113 115
114 Vector<int> m_compositorAnimationIds; 116 Vector<int> m_compositorAnimationIds;
115 117
116 friend class AnimationAnimationV8Test; 118 friend class AnimationAnimationV8Test;
117 }; 119 };
118 120
119 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isAnimation(), animationNode.isAnimation()); 121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isAnimation(), animationNode.isAnimation());
120 122
121 } // namespace blink 123 } // namespace blink
122 124
123 #endif // KeyframeEffect_h 125 #endif // KeyframeEffect_h
OLDNEW
« no previous file with comments | « Source/core/animation/ElementAnimations.cpp ('k') | Source/core/animation/KeyframeEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698