| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/animation/SampledEffect.h" | 5 #include "core/animation/SampledEffect.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 SampledEffect::SampledEffect(KeyframeEffectReadOnly* effect) | 9 SampledEffect::SampledEffect(KeyframeEffectReadOnly* effect) |
| 10 : m_effect(effect), | 10 : m_effect(effect), |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 if (!replacedProperties.contains(interpolation->getProperty())) | 27 if (!replacedProperties.contains(interpolation->getProperty())) |
| 28 m_interpolations[newSize++].swap(interpolation); | 28 m_interpolations[newSize++].swap(interpolation); |
| 29 } | 29 } |
| 30 m_interpolations.shrink(newSize); | 30 m_interpolations.shrink(newSize); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void SampledEffect::updateReplacedProperties( | 33 void SampledEffect::updateReplacedProperties( |
| 34 HashSet<PropertyHandle>& replacedProperties) { | 34 HashSet<PropertyHandle>& replacedProperties) { |
| 35 for (const auto& interpolation : m_interpolations) { | 35 for (const auto& interpolation : m_interpolations) { |
| 36 if (!interpolation->dependsOnUnderlyingValue()) | 36 if (!interpolation->dependsOnUnderlyingValue()) |
| 37 replacedProperties.add(interpolation->getProperty()); | 37 replacedProperties.insert(interpolation->getProperty()); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 DEFINE_TRACE(SampledEffect) { | 41 DEFINE_TRACE(SampledEffect) { |
| 42 visitor->trace(m_effect); | 42 visitor->trace(m_effect); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| OLD | NEW |