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

Unified Diff: third_party/WebKit/Source/core/html/forms/TextControlInnerElements.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/html/forms/TextControlInnerElements.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
index 9a41b098c31fc189d58a4ba7c5d4cc8a7c66da05..10f9c53daf639f55bc456676b9c4153b7b9c70e9 100644
--- a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
@@ -89,7 +89,7 @@ PassRefPtr<ComputedStyle> EditingViewPortElement::CustomStyleForLayoutObject() {
style->SetUserModify(EUserModify::kReadOnly);
style->SetUnique();
- return style.Release();
+ return style;
}
// ---------------------------
@@ -146,7 +146,7 @@ TextControlInnerEditorElement::CustomStyleForLayoutObject() {
// Using StyleAdjuster::adjustComputedStyle updates unwanted style. We'd like
// to apply only editing-related and alignment-related.
StyleAdjuster::AdjustStyleForEditing(*inner_editor_style);
- return inner_editor_style.Release();
+ return inner_editor_style;
}
// ----------------------------

Powered by Google App Engine
This is Rietveld 408576698