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

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

Issue 1780603002: blink: Rename bindings/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-bindings: rebase Created 4 years, 9 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(KeyframeEffect* effect) 9 SampledEffect::SampledEffect(KeyframeEffect* effect)
10 : m_effect(effect) 10 : m_effect(effect)
(...skipping 10 matching lines...) Expand all
21 21
22 bool SampledEffect::willNeverChange() const 22 bool SampledEffect::willNeverChange() const
23 { 23 {
24 return !m_effect || !m_effect->animation(); 24 return !m_effect || !m_effect->animation();
25 } 25 }
26 26
27 void SampledEffect::removeReplacedInterpolations(const HashSet<PropertyHandle>& replacedProperties) 27 void SampledEffect::removeReplacedInterpolations(const HashSet<PropertyHandle>& replacedProperties)
28 { 28 {
29 size_t newSize = 0; 29 size_t newSize = 0;
30 for (auto& interpolation : m_interpolations) { 30 for (auto& interpolation : m_interpolations) {
31 if (!replacedProperties.contains(interpolation->property())) 31 if (!replacedProperties.contains(interpolation->getProperty()))
32 m_interpolations[newSize++].swap(interpolation); 32 m_interpolations[newSize++].swap(interpolation);
33 } 33 }
34 m_interpolations.shrink(newSize); 34 m_interpolations.shrink(newSize);
35 } 35 }
36 36
37 void SampledEffect::updateReplacedProperties(HashSet<PropertyHandle>& replacedPr operties) 37 void SampledEffect::updateReplacedProperties(HashSet<PropertyHandle>& replacedPr operties)
38 { 38 {
39 for (const auto& interpolation : m_interpolations) { 39 for (const auto& interpolation : m_interpolations) {
40 if (!interpolation->dependsOnUnderlyingValue()) 40 if (!interpolation->dependsOnUnderlyingValue())
41 replacedProperties.add(interpolation->property()); 41 replacedProperties.add(interpolation->getProperty());
42 } 42 }
43 } 43 }
44 44
45 DEFINE_TRACE(SampledEffect) 45 DEFINE_TRACE(SampledEffect)
46 { 46 {
47 visitor->trace(m_effect); 47 visitor->trace(m_effect);
48 } 48 }
49 49
50 } // namespace blink 50 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698