Refactoring: Replace Element::disabled and isEnabledFormControl with isDisabledFormCo...
[WebKit-https.git] / Source / WebCore / dom / GestureEvent.cpp
index 015755a..4fa8163 100644 (file)
@@ -119,7 +119,7 @@ GestureEvent* GestureEventDispatchMediator::event() const
 
 bool GestureEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const
 {
-    if (dispatcher->node()->isElementNode() && toElement(dispatcher->node())->disabled())
+    if (isDisabledFormControl(dispatcher->node()))
         return true;
 
     dispatcher->dispatch();