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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 2cdaa100588158ab758f668e877e0eb3ad68a8e1..d837619411d9c3ac0a08528f86939465039dc0f2 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -674,7 +674,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForElement(
isAtShadowBoundary(element)
? ComputedStyleBase::AtShadowBoundary
: ComputedStyleBase::NotAtShadowBoundary);
- state.setStyle(style.release());
+ state.setStyle(std::move(style));
} else {
state.setStyle(initialStyleForElement());
state.setParentStyle(ComputedStyle::clone(*state.style()));
@@ -880,7 +880,7 @@ bool StyleResolver::pseudoStyleForElementInternal(
} else if (pseudoStyleRequest.allowsInheritance(state.parentStyle())) {
RefPtr<ComputedStyle> style = ComputedStyle::create();
style->inheritFrom(*state.parentStyle());
- state.setStyle(style.release());
+ state.setStyle(std::move(style));
} else {
state.setStyle(initialStyleForElement());
state.setParentStyle(ComputedStyle::clone(*state.style()));
@@ -972,7 +972,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForPage(int pageIndex) {
: document().computedStyle();
DCHECK(rootElementStyle);
style->inheritFrom(*rootElementStyle);
- state.setStyle(style.release());
+ state.setStyle(std::move(style));
PageRuleCollector collector(rootElementStyle, pageIndex);

Powered by Google App Engine
This is Rietveld 408576698