| Index: Source/core/html/forms/ResetInputType.cpp
|
| diff --git a/Source/core/html/forms/ResetInputType.cpp b/Source/core/html/forms/ResetInputType.cpp
|
| index 7ee95f7debe9be6a0a8a6f0702448e7d05433b82..d1e07e544dbec8d1dbcb65a468e4db0693469019 100644
|
| --- a/Source/core/html/forms/ResetInputType.cpp
|
| +++ b/Source/core/html/forms/ResetInputType.cpp
|
| @@ -41,7 +41,7 @@
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<InputType> ResetInputType::create(HTMLInputElement* element)
|
| +PassRefPtr<InputType> ResetInputType::create(HTMLInputElement& element)
|
| {
|
| return adoptRef(new ResetInputType(element));
|
| }
|
| @@ -58,9 +58,9 @@ bool ResetInputType::supportsValidation() const
|
|
|
| void ResetInputType::handleDOMActivateEvent(Event* event)
|
| {
|
| - if (element()->isDisabledFormControl() || !element()->form())
|
| + if (element().isDisabledFormControl() || !element().form())
|
| return;
|
| - element()->form()->reset();
|
| + element().form()->reset();
|
| event->setDefaultHandled();
|
| }
|
|
|
|
|