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

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

Issue 2889903002: Remove usage of RefPtr::Release() passed to ComputedStyle setters. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 8bdd0b8ad69cf16d76e95b77ec0eb9cc40c23c2d..af710a5670f2b3475c8303f1f71f48bc76d84b35 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -3257,7 +3257,7 @@ const ComputedStyle* Element::EnsureComputedStyle(
PseudoStyleRequest::kForComputedStyle),
element_style, layout_parent_style);
DCHECK(result);
- return element_style->AddCachedPseudoStyle(result.Release());
+ return element_style->AddCachedPseudoStyle(std::move(result));
}
const ComputedStyle* Element::NonLayoutObjectComputedStyle() const {
@@ -3439,7 +3439,7 @@ ComputedStyle* Element::PseudoStyle(const PseudoStyleRequest& request,
RefPtr<ComputedStyle> result = GetUncachedPseudoStyle(request, parent_style);
if (result)
- return style->AddCachedPseudoStyle(result.Release());
+ return style->AddCachedPseudoStyle(std::move(result));
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698