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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h

Issue 2359553003: Replaced PassRefPtr copies with moves. (Closed)
Patch Set: Created 4 years, 3 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/animatable/AnimatableValueKeyframe.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
index f9c351cfc46c6ddeb47c3c8a869ce2dda7cb3b08..e4aba04d55c7874178a4ce66387f090588a413e2 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
@@ -20,7 +20,7 @@ public:
}
void setPropertyValue(CSSPropertyID property, PassRefPtr<AnimatableValue> value)
{
- m_propertyValues.set(property, value);
+ m_propertyValues.set(property, std::move(value));
}
void clearPropertyValue(CSSPropertyID property) { m_propertyValues.remove(property); }
AnimatableValue* propertyValue(CSSPropertyID property) const

Powered by Google App Engine
This is Rietveld 408576698