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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutTextFragmentItem.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/LayoutTextFragmentItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutTextFragmentItem.h b/third_party/WebKit/Source/core/layout/api/LayoutTextFragmentItem.h
index ee6382588de8e2c8e1b325b10f88cc2dfb9d06c2..f2224793bc13a763257e79cd58424572f890d370 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutTextFragmentItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutTextFragmentItem.h
@@ -31,7 +31,7 @@ public:
void setTextFragment(PassRefPtr<StringImpl> text, unsigned start, unsigned length)
{
- toTextFragment()->setTextFragment(text, start, length);
+ toTextFragment()->setTextFragment(std::move(text), start, length);
}
FirstLetterPseudoElement* firstLetterPseudoElement() const
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LayoutItem.h ('k') | third_party/WebKit/Source/core/layout/api/LayoutTextItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698