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

Unified Diff: third_party/WebKit/Source/core/html/forms/SearchInputType.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/SearchInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
index 3ee8ac6fb6785d0a261a17a91891844bd65f9f72..65f6345b4634fa622de8f62a4c15c7da5d07fb49 100644
--- a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
@@ -52,9 +52,9 @@ inline SearchInputType::SearchInputType(HTMLInputElement& element)
{
}
-PassRefPtrWillBeRawPtr<InputType> SearchInputType::create(HTMLInputElement& element)
+RawPtr<InputType> SearchInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new SearchInputType(element));
+ return new SearchInputType(element);
}
void SearchInputType::countUsage()
@@ -98,7 +98,7 @@ void SearchInputType::handleKeydownEvent(KeyboardEvent* event)
const String& key = event->keyIdentifier();
if (key == "U+001B") {
- RefPtrWillBeRawPtr<HTMLInputElement> input(element());
+ RawPtr<HTMLInputElement> input(element());
input->setValueForUser("");
input->onSearch();
event->setDefaultHandled();
@@ -114,7 +114,7 @@ void SearchInputType::startSearchEventTimer()
if (!length) {
m_searchEventTimer.stop();
- element().document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInputElement::onSearch, PassRefPtrWillBeRawPtr<HTMLInputElement>(&element())));
+ element().document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInputElement::onSearch, RawPtr<HTMLInputElement>(&element())));
return;
}

Powered by Google App Engine
This is Rietveld 408576698