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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.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/animatable/AnimatableLengthBox.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
index 4fcc7c7ccc36c9a9e0cb89fe6ce6ed0220ee0944..2957f37f86afabbec5855e82d0d0806608280d74 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
@@ -40,7 +40,7 @@ public:
~AnimatableLengthBox() override { }
static PassRefPtr<AnimatableLengthBox> create(PassRefPtr<AnimatableValue> left, PassRefPtr<AnimatableValue> right, PassRefPtr<AnimatableValue> top, PassRefPtr<AnimatableValue> bottom)
{
- return adoptRef(new AnimatableLengthBox(left, right, top, bottom));
+ return adoptRef(new AnimatableLengthBox(std::move(left), std::move(right), std::move(top), std::move(bottom)));
}
const AnimatableValue* left() const { return m_left.get(); }
const AnimatableValue* right() const { return m_right.get(); }

Powered by Google App Engine
This is Rietveld 408576698