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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.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/svg/LayoutSVGInlineText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
index 276da9a6da7ec1ca3610a5abf3818567fa5b802c..b473c4d57171c0eea72c346b48185c9509275613 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
@@ -52,14 +52,14 @@ static PassRefPtr<StringImpl> normalizeWhitespace(PassRefPtr<StringImpl> string)
}
LayoutSVGInlineText::LayoutSVGInlineText(Node* n, PassRefPtr<StringImpl> string)
- : LayoutText(n, normalizeWhitespace(string))
+ : LayoutText(n, normalizeWhitespace(std::move(string)))
, m_scalingFactor(1)
{
}
void LayoutSVGInlineText::setTextInternal(PassRefPtr<StringImpl> text)
{
- LayoutText::setTextInternal(text);
+ LayoutText::setTextInternal(std::move(text));
if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAncestor(this))
textLayoutObject->subtreeTextDidChange();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LayoutTextItem.h ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698