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

Unified Diff: third_party/WebKit/Source/core/animation/StringKeyframe.h

Issue 2286233002: Replaced PassRefPtr copies with moves in Source/core/animation. (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/StringKeyframe.h
diff --git a/third_party/WebKit/Source/core/animation/StringKeyframe.h b/third_party/WebKit/Source/core/animation/StringKeyframe.h
index bf7beae52b59fee6a766b5901ff24b141b97b161..ea050ef5262f519e639cfbcba9906fbb4a65723a 100644
--- a/third_party/WebKit/Source/core/animation/StringKeyframe.h
+++ b/third_party/WebKit/Source/core/animation/StringKeyframe.h
@@ -52,7 +52,7 @@ public:
public:
static PassRefPtr<CSSPropertySpecificKeyframe> create(double offset, PassRefPtr<TimingFunction> easing, const CSSValue* value, EffectModel::CompositeOperation composite)
{
- return adoptRef(new CSSPropertySpecificKeyframe(offset, easing, value, composite));
+ return adoptRef(new CSSPropertySpecificKeyframe(offset, std::move(easing), value, composite));
}
const CSSValue* value() const { return m_value.get(); }
@@ -66,7 +66,7 @@ public:
private:
CSSPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, const CSSValue* value, EffectModel::CompositeOperation composite)
- : Keyframe::PropertySpecificKeyframe(offset, easing, composite)
+ : Keyframe::PropertySpecificKeyframe(offset, std::move(easing), composite)
, m_value(const_cast<CSSValue*>(value))
{ }
@@ -84,7 +84,7 @@ public:
public:
static PassRefPtr<SVGPropertySpecificKeyframe> create(double offset, PassRefPtr<TimingFunction> easing, const String& value, EffectModel::CompositeOperation composite)
{
- return adoptRef(new SVGPropertySpecificKeyframe(offset, easing, value, composite));
+ return adoptRef(new SVGPropertySpecificKeyframe(offset, std::move(easing), value, composite));
}
const String& value() const { return m_value; }
@@ -98,7 +98,7 @@ public:
private:
SVGPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, const String& value, EffectModel::CompositeOperation composite)
- : Keyframe::PropertySpecificKeyframe(offset, easing, composite)
+ : Keyframe::PropertySpecificKeyframe(offset, std::move(easing), composite)
, m_value(value)
{ }

Powered by Google App Engine
This is Rietveld 408576698