| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool m_dependsOnUnderlyingValue; | 87 bool m_dependsOnUnderlyingValue; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 const double accuracyForKeyframeEasing = 0.0000001; | 90 const double accuracyForKeyframeEasing = 0.0000001; |
| 91 | 91 |
| 92 } // namespace | 92 } // namespace |
| 93 | 93 |
| 94 | 94 |
| 95 namespace WebCore { | 95 namespace WebCore { |
| 96 | 96 |
| 97 DEFINE_GC_INFO(Keyframe); | |
| 98 DEFINE_GC_INFO(AnimationEffect); | |
| 99 | |
| 100 Keyframe::Keyframe() | 97 Keyframe::Keyframe() |
| 101 : m_offset(nullValue()) | 98 : m_offset(nullValue()) |
| 102 , m_composite(AnimationEffect::CompositeReplace) | 99 , m_composite(AnimationEffect::CompositeReplace) |
| 103 { } | 100 { } |
| 104 | 101 |
| 105 Keyframe::Keyframe(const Keyframe& copyFrom) | 102 Keyframe::Keyframe(const Keyframe& copyFrom) |
| 106 : m_offset(copyFrom.m_offset) | 103 : m_offset(copyFrom.m_offset) |
| 107 , m_composite(copyFrom.m_composite) | 104 , m_composite(copyFrom.m_composite) |
| 108 , m_easing(copyFrom.m_easing) | 105 , m_easing(copyFrom.m_easing) |
| 109 { | 106 { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 fraction = timingFunction->evaluate(fraction, accuracyForKeyframeEasing)
; | 388 fraction = timingFunction->evaluate(fraction, accuracyForKeyframeEasing)
; |
| 392 return BlendedCompositableValue::create((*before)->value(), (*after)->value(
), fraction); | 389 return BlendedCompositableValue::create((*before)->value(), (*after)->value(
), fraction); |
| 393 } | 390 } |
| 394 | 391 |
| 395 void KeyframeEffectModel::trace(Visitor* visitor) | 392 void KeyframeEffectModel::trace(Visitor* visitor) |
| 396 { | 393 { |
| 397 visitor->trace(m_keyframes); | 394 visitor->trace(m_keyframes); |
| 398 } | 395 } |
| 399 | 396 |
| 400 } // namespace | 397 } // namespace |
| OLD | NEW |