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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextCombine.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/LayoutTextCombine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
index d49b84731e5d05b9dfedc71e27184906655a9daf..0c5258d02e9bdc8c2ee642031eaa39667af88717 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
@@ -27,7 +27,7 @@ namespace blink {
const float textCombineMargin = 1.1f; // Allow em + 10% margin
LayoutTextCombine::LayoutTextCombine(Node* node, PassRefPtr<StringImpl> string)
- : LayoutText(node, string)
+ : LayoutText(node, std::move(string))
, m_combinedTextWidth(0)
, m_scaleX(1.0f)
, m_isCombined(false)
@@ -45,7 +45,7 @@ void LayoutTextCombine::styleDidChange(StyleDifference diff, const ComputedStyle
void LayoutTextCombine::setTextInternal(PassRefPtr<StringImpl> text)
{
- LayoutText::setTextInternal(text);
+ LayoutText::setTextInternal(std::move(text));
updateIsCombined();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698