Change incorrect calls to the constructor "EventNames()" to the correct accessor
[WebKit-https.git] / WebCore / html / HTMLFormControlElement.cpp
index 154654384a8c338e6f1e1d96a0edc7bee2c88fe8..2531c48b6a1895bf7845170d51a6e23d985fbafc 100644 (file)
@@ -296,7 +296,7 @@ String HTMLFormControlElement::validationMessage()
 bool HTMLFormControlElement::checkValidity()
 {
     if (willValidate() && !isValidFormControlElement()) {
-        dispatchEvent(Event::create(EventNames().invalidEvent, false, true));
+        dispatchEvent(Event::create(eventNames().invalidEvent, false, true));
         return false;
     }