Index: Source/WebCore/dom/GestureEvent.cpp |
=================================================================== |
--- Source/WebCore/dom/GestureEvent.cpp (revision 146891) |
+++ Source/WebCore/dom/GestureEvent.cpp (working copy) |
@@ -29,7 +29,6 @@ |
#include "GestureEvent.h" |
-#include "Element.h" |
#include <wtf/text/AtomicString.h> |
namespace WebCore { |
@@ -119,7 +118,7 @@ |
bool GestureEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const |
{ |
- if (dispatcher->node()->isElementNode() && toElement(dispatcher->node())->disabled()) |
+ if (dispatcher->node()->disabled()) |
return true; |
dispatcher->dispatch(); |