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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp

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/LayoutTextFragment.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
index 2470923398990b84a3fcf305d4e0b8f08208c86a..cfcf034abb2f8e4dfc645daf5acb7045d76bab5d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
@@ -85,7 +85,7 @@ PassRefPtr<StringImpl> LayoutTextFragment::originalText() const
void LayoutTextFragment::setText(PassRefPtr<StringImpl> text, bool force)
{
- LayoutText::setText(text, force);
+ LayoutText::setText(std::move(text), force);
m_start = 0;
m_fragmentLength = textLength();
@@ -101,7 +101,7 @@ void LayoutTextFragment::setText(PassRefPtr<StringImpl> text, bool force)
void LayoutTextFragment::setTextFragment(PassRefPtr<StringImpl> text, unsigned start, unsigned length)
{
- LayoutText::setText(text, false);
+ LayoutText::setText(std::move(text), false);
m_start = start;
m_fragmentLength = length;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698