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

Unified Diff: Source/core/html/SearchInputType.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 | « Source/core/html/SearchInputType.h ('k') | Source/core/html/SubmitInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/SearchInputType.cpp
diff --git a/Source/core/html/SearchInputType.cpp b/Source/core/html/SearchInputType.cpp
index 18fc880cb0eb23320e6d658c3987a0c49204e9c0..46ddd6eb9adb5d60dc9adb3549adb8962085fd4c 100644
--- a/Source/core/html/SearchInputType.cpp
+++ b/Source/core/html/SearchInputType.cpp
@@ -44,7 +44,7 @@ namespace WebCore {
using namespace HTMLNames;
-inline SearchInputType::SearchInputType(HTMLInputElement* element)
+inline SearchInputType::SearchInputType(Handle<HTMLInputElement> element)
: BaseTextInputType(element)
, m_resultsButton(0)
, m_cancelButton(0)
@@ -52,7 +52,7 @@ inline SearchInputType::SearchInputType(HTMLInputElement* element)
{
}
-PassOwnPtr<InputType> SearchInputType::create(HTMLInputElement* element)
+PassOwnPtr<InputType> SearchInputType::create(Handle<HTMLInputElement> element)
{
return adoptPtr(new SearchInputType(element));
}
@@ -71,7 +71,7 @@ void SearchInputType::addSearchResult()
RenderObject* SearchInputType::createRenderer(RenderArena* arena, RenderStyle*) const
{
- return new (arena) RenderSearchField(element());
+ return new (arena) RenderSearchField(Handle<HTMLInputElement>(element()).raw());
}
const AtomicString& SearchInputType::formControlType() const
@@ -133,7 +133,7 @@ void SearchInputType::handleKeydownEvent(KeyboardEvent* event)
const String& key = event->keyIdentifier();
if (key == "U+001B") {
- RefPtr<HTMLInputElement> input = element();
+ Handle<HTMLInputElement> input = element();
input->setValueForUser("");
input->onSearch();
event->setDefaultHandled();
« no previous file with comments | « Source/core/html/SearchInputType.h ('k') | Source/core/html/SubmitInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698