Index: Source/core/html/forms/SubmitInputType.cpp |
diff --git a/Source/core/html/forms/SubmitInputType.cpp b/Source/core/html/forms/SubmitInputType.cpp |
index 260f9665e785220144a2d18d800528cc8edc85ce..cda83bfca94d8f2dbe94e040fd63c515ac432a50 100644 |
--- a/Source/core/html/forms/SubmitInputType.cpp |
+++ b/Source/core/html/forms/SubmitInputType.cpp |
@@ -42,7 +42,7 @@ |
namespace WebCore { |
-PassRefPtr<InputType> SubmitInputType::create(HTMLInputElement* element) |
+PassRefPtr<InputType> SubmitInputType::create(HTMLInputElement& element) |
{ |
return adoptRef(new SubmitInputType(element)); |
} |
@@ -54,9 +54,9 @@ const AtomicString& SubmitInputType::formControlType() const |
bool SubmitInputType::appendFormData(FormDataList& encoding, bool) const |
{ |
- if (!element()->isActivatedSubmit()) |
+ if (!element().isActivatedSubmit()) |
return false; |
- encoding.appendData(element()->name(), element()->valueWithDefault()); |
+ encoding.appendData(element().name(), element().valueWithDefault()); |
return true; |
} |
@@ -67,7 +67,7 @@ bool SubmitInputType::supportsRequired() const |
void SubmitInputType::handleDOMActivateEvent(Event* event) |
{ |
- RefPtr<HTMLInputElement> element = this->element(); |
+ RefPtr<HTMLInputElement> element(this->element()); |
if (element->isDisabledFormControl() || !element->form()) |
return; |
element->setActivatedSubmit(true); |