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

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

Issue 190763007: [WIP] Web Animations API: Constructing an Animation from partial keyframes throws a JS exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace manual checks with check for dependsOnUnderlyingValue Created 6 years, 9 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 // AnimationEffect implementation. 103 // AnimationEffect implementation.
104 virtual PassOwnPtr<CompositableValueList> sample(int iteration, double fract ion) const OVERRIDE; 104 virtual PassOwnPtr<CompositableValueList> sample(int iteration, double fract ion) const OVERRIDE;
105 105
106 // FIXME: Implement setFrames() 106 // FIXME: Implement setFrames()
107 const KeyframeVector& getFrames() const { return m_keyframes; } 107 const KeyframeVector& getFrames() const { return m_keyframes; }
108 108
109 virtual bool isKeyframeEffectModel() const OVERRIDE { return true; } 109 virtual bool isKeyframeEffectModel() const OVERRIDE { return true; }
110 110
111 bool isReplaceOnly();
112
111 PropertySet properties() const; 113 PropertySet properties() const;
112 114
113 class PropertySpecificKeyframe { 115 class PropertySpecificKeyframe {
114 public: 116 public:
115 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, const AnimatableValue*, CompositeOperation); 117 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, const AnimatableValue*, CompositeOperation);
116 double offset() const { return m_offset; } 118 double offset() const { return m_offset; }
117 const TimingFunction* easing() const { return m_easing.get(); } 119 const TimingFunction* easing() const { return m_easing.get(); }
118 const CompositableValue* value() const { return m_value.get(); } 120 const CompositableValue* value() const { return m_value.get(); }
119 PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) cons t; 121 PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) cons t;
120 private: 122 private:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups; 164 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups;
163 165
164 friend class KeyframeEffectModelTest; 166 friend class KeyframeEffectModelTest;
165 }; 167 };
166 168
167 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe EffectModel(), value.isKeyframeEffectModel()); 169 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe EffectModel(), value.isKeyframeEffectModel());
168 170
169 } // namespace WebCore 171 } // namespace WebCore
170 172
171 #endif // KeyframeEffectModel_h 173 #endif // KeyframeEffectModel_h
OLDNEW
« no previous file with comments | « Source/core/animation/ElementAnimation.idl ('k') | Source/core/animation/KeyframeEffectModel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698