Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index e3c52907a668e751fff8cea93f78764b3a88191a..b296b848d6718bfc7ee2c7934fa3b0266a166918 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -503,6 +503,11 @@ HTMLFormElement* HTMLFormControlElement::virtualForm() const |
return FormAssociatedElement::form(); |
} |
+bool HTMLFormControlElement::isSuccessfulSubmitButton() const |
+{ |
+ return canBeSuccessfulSubmitButton() && !isDisabledFormControl(); |
+} |
+ |
bool HTMLFormControlElement::isDefaultButtonForForm() const |
{ |
return isSuccessfulSubmitButton() && form() && form()->defaultButton() == this; |