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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutItem.h

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased 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/layout/api/LayoutItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutItem.h b/third_party/WebKit/Source/core/layout/api/LayoutItem.h
index c3df37a52333d864019e334eeb3fa428350963ad..7236737d2e1fc9a1ebd9bc1018dc54b248ad4da5 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutItem.h
@@ -192,7 +192,7 @@ public:
void setStyle(PassRefPtr<ComputedStyle> style)
{
- m_layoutObject->setStyle(style);
+ m_layoutObject->setStyle(std::move(style));
}
LayoutSize offsetFromContainer(const LayoutItem& item) const

Powered by Google App Engine
This is Rietveld 408576698