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

Side by Side Diff: Source/core/animation/KeyframeEffectModel.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/KeyframeEffect.cpp ('k') | Source/core/animation/KeyframeEffectModel.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 inline void forEachInterpolation(const T& callback) { m_interpolationEffect- >forEachInterpolation(callback); } 112 inline void forEachInterpolation(const T& callback) { m_interpolationEffect- >forEachInterpolation(callback); }
113 113
114 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector& keyframes) { return normalizedKeyframes(keyframes); } 114 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector& keyframes) { return normalizedKeyframes(keyframes); }
115 115
116 bool affects(PropertyHandle property) const override 116 bool affects(PropertyHandle property) const override
117 { 117 {
118 ensureKeyframeGroups(); 118 ensureKeyframeGroups();
119 return m_keyframeGroups->contains(property); 119 return m_keyframeGroups->contains(property);
120 } 120 }
121 121
122 virtual bool isTransformRelatedEffect() const override;
123
122 protected: 124 protected:
123 KeyframeEffectModelBase(PassRefPtrWillBeRawPtr<TimingFunction> neutralKeyfra meEasing) 125 KeyframeEffectModelBase(PassRefPtrWillBeRawPtr<TimingFunction> neutralKeyfra meEasing)
124 : m_neutralKeyframeEasing(neutralKeyframeEasing) 126 : m_neutralKeyframeEasing(neutralKeyframeEasing)
125 { 127 {
126 } 128 }
127 129
128 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes); 130 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes);
129 131
130 // Lazily computes the groups of property-specific keyframes. 132 // Lazily computes the groups of property-specific keyframes.
131 void ensureKeyframeGroups() const; 133 void ensureKeyframeGroups() const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 205
204 template <> 206 template <>
205 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; } 207 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; }
206 208
207 template <> 209 template <>
208 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; } 210 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; }
209 211
210 } // namespace blink 212 } // namespace blink
211 213
212 #endif // KeyframeEffectModel_h 214 #endif // KeyframeEffectModel_h
OLDNEW
« no previous file with comments | « Source/core/animation/KeyframeEffect.cpp ('k') | Source/core/animation/KeyframeEffectModel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698