| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 PropertyHandleSet properties() const; | 80 PropertyHandleSet properties() const; |
| 81 | 81 |
| 82 using KeyframeVector = Vector<RefPtr<Keyframe>>; | 82 using KeyframeVector = Vector<RefPtr<Keyframe>>; |
| 83 const KeyframeVector& getFrames() const { return m_keyframes; } | 83 const KeyframeVector& getFrames() const { return m_keyframes; } |
| 84 void setFrames(KeyframeVector& keyframes); | 84 void setFrames(KeyframeVector& keyframes); |
| 85 | 85 |
| 86 const PropertySpecificKeyframeVector& getPropertySpecificKeyframes( | 86 const PropertySpecificKeyframeVector& getPropertySpecificKeyframes( |
| 87 const PropertyHandle& property) const { | 87 const PropertyHandle& property) const { |
| 88 ensureKeyframeGroups(); | 88 ensureKeyframeGroups(); |
| 89 return m_keyframeGroups->get(property)->keyframes(); | 89 return m_keyframeGroups->at(property)->keyframes(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 using KeyframeGroupMap = | 92 using KeyframeGroupMap = |
| 93 HashMap<PropertyHandle, std::unique_ptr<PropertySpecificKeyframeGroup>>; | 93 HashMap<PropertyHandle, std::unique_ptr<PropertySpecificKeyframeGroup>>; |
| 94 const KeyframeGroupMap& getPropertySpecificKeyframeGroups() const { | 94 const KeyframeGroupMap& getPropertySpecificKeyframeGroups() const { |
| 95 ensureKeyframeGroups(); | 95 ensureKeyframeGroups(); |
| 96 return *m_keyframeGroups; | 96 return *m_keyframeGroups; |
| 97 } | 97 } |
| 98 | 98 |
| 99 // EffectModel implementation. | 99 // EffectModel implementation. |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 template <> | 274 template <> |
| 275 inline bool KeyframeEffectModel< | 275 inline bool KeyframeEffectModel< |
| 276 TransitionKeyframe>::isTransitionKeyframeEffectModel() const { | 276 TransitionKeyframe>::isTransitionKeyframeEffectModel() const { |
| 277 return true; | 277 return true; |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace blink | 280 } // namespace blink |
| 281 | 281 |
| 282 #endif // KeyframeEffectModel_h | 282 #endif // KeyframeEffectModel_h |
| OLD | NEW |