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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutRubyRun.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/LayoutRubyRun.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp b/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
index c45d4bd76bf9e1af6428c7583877550f94021179..c38bb42696d6c06b52087582393e5b9d0475e697 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
@@ -184,7 +184,7 @@ LayoutRubyBase* LayoutRubyRun::createRubyBase() const {
ComputedStyle::createAnonymousStyleWithDisplay(styleRef(),
EDisplay::Block);
newStyle->setTextAlign(ETextAlign::kCenter); // FIXME: use WEBKIT_CENTER?
- layoutObject->setStyle(newStyle.release());
+ layoutObject->setStyle(std::move(newStyle));
return layoutObject;
}
@@ -196,7 +196,7 @@ LayoutRubyRun* LayoutRubyRun::staticCreateRubyRun(
RefPtr<ComputedStyle> newStyle =
ComputedStyle::createAnonymousStyleWithDisplay(parentRuby->styleRef(),
EDisplay::InlineBlock);
- rr->setStyle(newStyle.release());
+ rr->setStyle(std::move(newStyle));
return rr;
}

Powered by Google App Engine
This is Rietveld 408576698