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

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2359553003: Replaced PassRefPtr copies with moves. (Closed)
Patch Set: 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/dom/ElementRareData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
index f825a379d856b839c26af4dad2966eb094aaa902..665b59a57c2b98af2757cc2eb417ce6ddaf7980b 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -102,7 +102,7 @@ public:
void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle)
{
if (layoutObject())
- layoutObject()->setStyleInternal(computedStyle);
+ layoutObject()->setStyleInternal(std::move(computedStyle));
else
m_computedStyle = computedStyle;
}

Powered by Google App Engine
This is Rietveld 408576698