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

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

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 6468370fc3edd92e486b70d643012424f9a4c0d2..d2e018ebda56eff5650e019861d38c282be57f17 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1920,7 +1920,7 @@ PassRefPtr<ComputedStyle> Element::StyleForLayoutObject() {
style->UpdateIsStackingContext(this == GetDocument().documentElement(),
IsInTopLayer());
- return style.Release();
+ return style;
}
PassRefPtr<ComputedStyle> Element::OriginalStyleForLayoutObject() {
@@ -3527,7 +3527,7 @@ PassRefPtr<ComputedStyle> Element::GetUncachedPseudoStyle(
GetDocument().EnsureStyleResolver().StyleForElement(
this, parent_style, parent_style, kDisallowStyleSharing);
result->SetStyleType(kPseudoIdFirstLineInherited);
- return result.Release();
+ return result;
}
return GetDocument().EnsureStyleResolver().PseudoStyleForElement(
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/core/html/FormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698