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

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

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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/StringKeyframe.h" 5 #include "core/animation/StringKeyframe.h"
6 6
7 #include "core/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/animation/css/CSSAnimations.h" 8 #include "core/animation/css/CSSAnimations.h"
9 #include "core/css/CSSCustomPropertyDeclaration.h" 9 #include "core/css/CSSCustomPropertyDeclaration.h"
10 #include "core/css/CSSPropertyMetadata.h" 10 #include "core/css/CSSPropertyMetadata.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 PassRefPtr<TimingFunction> easing) const { 136 PassRefPtr<TimingFunction> easing) const {
137 return Create(offset, std::move(easing), nullptr, EffectModel::kCompositeAdd); 137 return Create(offset, std::move(easing), nullptr, EffectModel::kCompositeAdd);
138 } 138 }
139 139
140 PassRefPtr<Keyframe::PropertySpecificKeyframe> 140 PassRefPtr<Keyframe::PropertySpecificKeyframe>
141 StringKeyframe::CSSPropertySpecificKeyframe::CloneWithOffset( 141 StringKeyframe::CSSPropertySpecificKeyframe::CloneWithOffset(
142 double offset) const { 142 double offset) const {
143 RefPtr<CSSPropertySpecificKeyframe> clone = 143 RefPtr<CSSPropertySpecificKeyframe> clone =
144 Create(offset, easing_, value_.Get(), composite_); 144 Create(offset, easing_, value_.Get(), composite_);
145 clone->animatable_value_cache_ = animatable_value_cache_; 145 clone->animatable_value_cache_ = animatable_value_cache_;
146 return clone.Release(); 146 return clone;
147 } 147 }
148 148
149 PassRefPtr<Keyframe::PropertySpecificKeyframe> 149 PassRefPtr<Keyframe::PropertySpecificKeyframe>
150 SVGPropertySpecificKeyframe::CloneWithOffset(double offset) const { 150 SVGPropertySpecificKeyframe::CloneWithOffset(double offset) const {
151 return Create(offset, easing_, value_, composite_); 151 return Create(offset, easing_, value_, composite_);
152 } 152 }
153 153
154 PassRefPtr<Keyframe::PropertySpecificKeyframe> 154 PassRefPtr<Keyframe::PropertySpecificKeyframe>
155 SVGPropertySpecificKeyframe::NeutralKeyframe( 155 SVGPropertySpecificKeyframe::NeutralKeyframe(
156 double offset, 156 double offset,
157 PassRefPtr<TimingFunction> easing) const { 157 PassRefPtr<TimingFunction> easing) const {
158 return Create(offset, std::move(easing), String(), 158 return Create(offset, std::move(easing), String(),
159 EffectModel::kCompositeAdd); 159 EffectModel::kCompositeAdd);
160 } 160 }
161 161
162 } // namespace blink 162 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/Keyframe.h ('k') | third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698