| 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();
|
|
|