| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 typedef HashSet<CSSPropertyID> PropertySet; | 47 typedef HashSet<CSSPropertyID> PropertySet; |
| 48 | 48 |
| 49 class KeyframeEffectModelTest; | 49 class KeyframeEffectModelTest; |
| 50 | 50 |
| 51 // Represents the keyframes set through the API. | 51 // Represents the keyframes set through the API. |
| 52 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { | 52 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { |
| 53 DECLARE_GC_INFO; | |
| 54 public: | 53 public: |
| 55 static PassRefPtrWillBeRawPtr<Keyframe> create() | 54 static PassRefPtrWillBeRawPtr<Keyframe> create() |
| 56 { | 55 { |
| 57 return adoptRefWillBeNoop(new Keyframe); | 56 return adoptRefWillBeNoop(new Keyframe); |
| 58 } | 57 } |
| 59 static bool compareOffsets(const RefPtrWillBeRawPtr<Keyframe>& a, const RefP
trWillBeRawPtr<Keyframe>& b) | 58 static bool compareOffsets(const RefPtrWillBeRawPtr<Keyframe>& a, const RefP
trWillBeRawPtr<Keyframe>& b) |
| 60 { | 59 { |
| 61 return a->offset() < b->offset(); | 60 return a->offset() < b->offset(); |
| 62 } | 61 } |
| 63 void setOffset(double offset) { m_offset = offset; } | 62 void setOffset(double offset) { m_offset = offset; } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups; | 162 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups; |
| 164 | 163 |
| 165 friend class KeyframeEffectModelTest; | 164 friend class KeyframeEffectModelTest; |
| 166 }; | 165 }; |
| 167 | 166 |
| 168 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe
EffectModel(), value.isKeyframeEffectModel()); | 167 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe
EffectModel(), value.isKeyframeEffectModel()); |
| 169 | 168 |
| 170 } // namespace WebCore | 169 } // namespace WebCore |
| 171 | 170 |
| 172 #endif // KeyframeEffectModel_h | 171 #endif // KeyframeEffectModel_h |
| OLD | NEW |