| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 DCHECK_GE(m_keyframes.size(), 2U); | 279 DCHECK_GE(m_keyframes.size(), 2U); |
| 280 } | 280 } |
| 281 | 281 |
| 282 bool KeyframeEffectModelBase::PropertySpecificKeyframeGroup::addSyntheticKeyfram
eIfRequired(PassRefPtr<TimingFunction> zeroOffsetEasing) | 282 bool KeyframeEffectModelBase::PropertySpecificKeyframeGroup::addSyntheticKeyfram
eIfRequired(PassRefPtr<TimingFunction> zeroOffsetEasing) |
| 283 { | 283 { |
| 284 DCHECK(!m_keyframes.isEmpty()); | 284 DCHECK(!m_keyframes.isEmpty()); |
| 285 | 285 |
| 286 bool addedSyntheticKeyframe = false; | 286 bool addedSyntheticKeyframe = false; |
| 287 | 287 |
| 288 if (m_keyframes.first()->offset() != 0.0) { | 288 if (m_keyframes.first()->offset() != 0.0) { |
| 289 m_keyframes.insert(0, m_keyframes.first()->neutralKeyframe(0, zeroOffset
Easing)); | 289 m_keyframes.insert(0, m_keyframes.first()->neutralKeyframe(0, std::move(
zeroOffsetEasing))); |
| 290 addedSyntheticKeyframe = true; | 290 addedSyntheticKeyframe = true; |
| 291 } | 291 } |
| 292 if (m_keyframes.last()->offset() != 1.0) { | 292 if (m_keyframes.last()->offset() != 1.0) { |
| 293 appendKeyframe(m_keyframes.last()->neutralKeyframe(1, nullptr)); | 293 appendKeyframe(m_keyframes.last()->neutralKeyframe(1, nullptr)); |
| 294 addedSyntheticKeyframe = true; | 294 addedSyntheticKeyframe = true; |
| 295 } | 295 } |
| 296 | 296 |
| 297 return addedSyntheticKeyframe; | 297 return addedSyntheticKeyframe; |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace blink | 300 } // namespace blink |
| OLD | NEW |