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

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

Issue 1153943003: Add foundation for removing AnimatableValues from StyleInterpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing header file Created 5 years, 7 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 namespace blink { 50 namespace blink {
51 51
52 class Element; 52 class Element;
53 class KeyframeEffectModelTest; 53 class KeyframeEffectModelTest;
54 54
55 class CORE_EXPORT KeyframeEffectModelBase : public EffectModel { 55 class CORE_EXPORT KeyframeEffectModelBase : public EffectModel {
56 public: 56 public:
57 // FIXME: Implement accumulation. 57 // FIXME: Implement accumulation.
58 58
59 using PropertySpecificKeyframeVector = WillBeHeapVector<OwnPtrWillBeMember<K eyframe::PropertySpecificKeyframe>>; 59 using PropertySpecificKeyframeVector = WillBeHeapVector<RefPtrWillBeMember<K eyframe::PropertySpecificKeyframe>>;
60 class PropertySpecificKeyframeGroup : public NoBaseWillBeGarbageCollected<Pr opertySpecificKeyframeGroup> { 60 class PropertySpecificKeyframeGroup : public NoBaseWillBeGarbageCollected<Pr opertySpecificKeyframeGroup> {
61 public: 61 public:
62 void appendKeyframe(PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKey frame>); 62 void appendKeyframe(PassRefPtrWillBeRawPtr<Keyframe::PropertySpecificKey frame>);
63 const PropertySpecificKeyframeVector& keyframes() const { return m_keyfr ames; } 63 const PropertySpecificKeyframeVector& keyframes() const { return m_keyfr ames; }
64 64
65 DECLARE_TRACE(); 65 DECLARE_TRACE();
66 66
67 private: 67 private:
68 void removeRedundantKeyframes(); 68 void removeRedundantKeyframes();
69 bool addSyntheticKeyframeIfRequired(PassRefPtr<TimingFunction> neutralKe yframeEasing); 69 bool addSyntheticKeyframeIfRequired(PassRefPtr<TimingFunction> neutralKe yframeEasing);
70 70
71 PropertySpecificKeyframeVector m_keyframes; 71 PropertySpecificKeyframeVector m_keyframes;
72 72
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 template <> 204 template <>
205 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; } 205 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; }
206 206
207 template <> 207 template <>
208 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; } 208 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; }
209 209
210 } // namespace blink 210 } // namespace blink
211 211
212 #endif // KeyframeEffectModel_h 212 #endif // KeyframeEffectModel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698