Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/Source/core/animation/SampledEffect.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698