| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 EffectModel::trace(visitor); | 227 EffectModel::trace(visitor); |
| 228 } | 228 } |
| 229 | 229 |
| 230 Keyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(double offset, Pass
RefPtr<TimingFunction> easing, EffectModel::CompositeOperation composite) | 230 Keyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(double offset, Pass
RefPtr<TimingFunction> easing, EffectModel::CompositeOperation composite) |
| 231 : m_offset(offset) | 231 : m_offset(offset) |
| 232 , m_easing(easing) | 232 , m_easing(easing) |
| 233 , m_composite(composite) | 233 , m_composite(composite) |
| 234 { | 234 { |
| 235 } | 235 } |
| 236 | 236 |
| 237 void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::appendKeyframe(Pass
OwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> keyframe) | 237 void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::appendKeyframe(Pass
RefPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> keyframe) |
| 238 { | 238 { |
| 239 ASSERT(m_keyframes.isEmpty() || m_keyframes.last()->offset() <= keyframe->of
fset()); | 239 ASSERT(m_keyframes.isEmpty() || m_keyframes.last()->offset() <= keyframe->of
fset()); |
| 240 m_keyframes.append(keyframe); | 240 m_keyframes.append(keyframe); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::removeRedundantKeyf
rames() | 243 void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::removeRedundantKeyf
rames() |
| 244 { | 244 { |
| 245 // As an optimization, removes keyframes in the following categories, as | 245 // As an optimization, removes keyframes in the following categories, as |
| 246 // they will never be used by sample(). | 246 // they will never be used by sample(). |
| 247 // - End keyframes with the same offset as their neighbor | 247 // - End keyframes with the same offset as their neighbor |
| (...skipping 30 matching lines...) Expand all Loading... |
| 278 } | 278 } |
| 279 | 279 |
| 280 DEFINE_TRACE(KeyframeEffectModelBase::PropertySpecificKeyframeGroup) | 280 DEFINE_TRACE(KeyframeEffectModelBase::PropertySpecificKeyframeGroup) |
| 281 { | 281 { |
| 282 #if ENABLE(OILPAN) | 282 #if ENABLE(OILPAN) |
| 283 visitor->trace(m_keyframes); | 283 visitor->trace(m_keyframes); |
| 284 #endif | 284 #endif |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace | 287 } // namespace |
| OLD | NEW |