Refactoring: Replace Element::disabled and isEnabledFormControl with isDisabledFormCo...
[WebKit-https.git] / Source / WebCore / html / SubmitInputType.cpp
index 489d9a1..8724ffb 100644 (file)
@@ -68,7 +68,7 @@ bool SubmitInputType::supportsRequired() const
 void SubmitInputType::handleDOMActivateEvent(Event* event)
 {
     RefPtr<HTMLInputElement> element = this->element();
-    if (element->disabled() || !element->form())
+    if (element->isDisabledFormControl() || !element->form())
         return;
     element->setActivatedSubmit(true);
     element->form()->prepareForSubmission(event); // Event handlers can run.