| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 ensureKeyframeGroups(); | 201 ensureKeyframeGroups(); |
| 202 for (const auto& entry : *m_keyframeGroups) { | 202 for (const auto& entry : *m_keyframeGroups) { |
| 203 for (const auto& keyframe : entry.value->keyframes()) { | 203 for (const auto& keyframe : entry.value->keyframes()) { |
| 204 if (keyframe->composite() != AnimationEffect::CompositeReplace) | 204 if (keyframe->composite() != AnimationEffect::CompositeReplace) |
| 205 return false; | 205 return false; |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 return true; | 208 return true; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void KeyframeEffectModelBase::trace(Visitor* visitor) | 211 DEFINE_TRACE(KeyframeEffectModelBase) |
| 212 { | 212 { |
| 213 visitor->trace(m_keyframes); | 213 visitor->trace(m_keyframes); |
| 214 #if ENABLE(OILPAN) | 214 #if ENABLE(OILPAN) |
| 215 visitor->trace(m_keyframeGroups); | 215 visitor->trace(m_keyframeGroups); |
| 216 #endif | 216 #endif |
| 217 visitor->trace(m_interpolationEffect); | 217 visitor->trace(m_interpolationEffect); |
| 218 AnimationEffect::trace(visitor); | 218 AnimationEffect::trace(visitor); |
| 219 } | 219 } |
| 220 | 220 |
| 221 Keyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(double offset, Pass
RefPtr<TimingFunction> easing, AnimationEffect::CompositeOperation composite) | 221 Keyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(double offset, Pass
RefPtr<TimingFunction> easing, AnimationEffect::CompositeOperation composite) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 addedSyntheticKeyframe = true; | 261 addedSyntheticKeyframe = true; |
| 262 } | 262 } |
| 263 if (m_keyframes.last()->offset() != 1.0) { | 263 if (m_keyframes.last()->offset() != 1.0) { |
| 264 appendKeyframe(m_keyframes.last()->neutralKeyframe(1, easing)); | 264 appendKeyframe(m_keyframes.last()->neutralKeyframe(1, easing)); |
| 265 addedSyntheticKeyframe = true; | 265 addedSyntheticKeyframe = true; |
| 266 } | 266 } |
| 267 | 267 |
| 268 return addedSyntheticKeyframe; | 268 return addedSyntheticKeyframe; |
| 269 } | 269 } |
| 270 | 270 |
| 271 void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::trace(Visitor* visi
tor) | 271 DEFINE_TRACE(KeyframeEffectModelBase::PropertySpecificKeyframeGroup) |
| 272 { | 272 { |
| 273 #if ENABLE(OILPAN) | 273 #if ENABLE(OILPAN) |
| 274 visitor->trace(m_keyframes); | 274 visitor->trace(m_keyframes); |
| 275 #endif | 275 #endif |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace | 278 } // namespace |
| OLD | NEW |