Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index e2190df58afc8f892b79f1c533075857d5ba2cac..efc06898b2906d1597845e9125b0a9d553e1d5d1 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -347,7 +347,7 @@ void HTMLFormElement::submit(Event* event, bool activateSubmitButton, bool proce |
HTMLFormControlElement* control = toHTMLFormControlElement(associatedElement); |
if (control->isActivatedSubmit()) |
needButtonActivation = false; |
- else if (firstSuccessfulSubmitButton == 0 && control->isSuccessfulSubmitButton()) |
+ else if (!firstSuccessfulSubmitButton && control->isSuccessfulSubmitButton()) |
firstSuccessfulSubmitButton = control; |
} |
} |