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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.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/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 4a760eea66a46f1eec031e925a30b9368ba4da7e..48a65aec647f02098e2fc9ea482afaba893dc8bd 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -1172,7 +1172,7 @@ void TextAutosizer::applyMultiplier(LayoutObject* layoutObject,
// during layout, e.g. BreakingContext::m_currentStyle.
m_stylesRetainedDuringLayout.push_back(&currentStyle);
- layoutObject->setStyleInternal(style.release());
+ layoutObject->setStyleInternal(std::move(style));
DCHECK(!layouter || layoutObject->isDescendantOf(&layouter->root()));
layoutObject->setNeedsLayoutAndFullPaintInvalidation(
LayoutInvalidationReason::TextAutosizing, MarkContainerChain,
@@ -1181,7 +1181,7 @@ void TextAutosizer::applyMultiplier(LayoutObject* layoutObject,
case LayoutNeeded:
DCHECK(!layouter);
- layoutObject->setStyle(style.release());
+ layoutObject->setStyle(std::move(style));
break;
}

Powered by Google App Engine
This is Rietveld 408576698