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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 43482a85797474481f9e2cccc4cb3732c79ab7c2..24ec074bf51aeb1ef0d38e4b11d8a02b6579a38f 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2033,7 +2033,7 @@ void Document::updateStyle() {
StyleRecalcChange localChange = ComputedStyle::stylePropagationDiff(
documentStyle.get(), layoutViewItem().style());
if (localChange != NoChange)
- layoutViewItem().setStyle(documentStyle.release());
+ layoutViewItem().setStyle(std::move(documentStyle));
}
clearNeedsStyleRecalc();

Powered by Google App Engine
This is Rietveld 408576698