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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index ca896f73f2f0d1ea771b0d2219404d2792f8f44f..63634cf5d7074aab45495187bba28a84131361b2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1582,7 +1582,7 @@ void LayoutObject::setPseudoStyle(PassRefPtr<ComputedStyle> pseudoStyle) {
if (isImage() || isQuote()) {
RefPtr<ComputedStyle> style = ComputedStyle::create();
style->inheritFrom(*pseudoStyle);
- setStyle(style.release());
+ setStyle(std::move(style));
return;
}
@@ -1661,7 +1661,7 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) {
styleWillChange(diff, *style);
- RefPtr<ComputedStyle> oldStyle = m_style.release();
+ RefPtr<ComputedStyle> oldStyle = std::move(m_style);
setStyleInternal(std::move(style));
updateFillImages(oldStyle ? &oldStyle->backgroundLayers() : 0,
@@ -1955,7 +1955,7 @@ void LayoutObject::propagateStyleToAnonymousChildren() {
updateAnonymousChildStyle(*child, *newStyle);
- child->setStyle(newStyle.release());
+ child->setStyle(std::move(newStyle));
}
}

Powered by Google App Engine
This is Rietveld 408576698