Index: Source/WebCore/dom/EventDispatcher.cpp |
=================================================================== |
--- Source/WebCore/dom/EventDispatcher.cpp (revision 146891) |
+++ Source/WebCore/dom/EventDispatcher.cpp (working copy) |
@@ -79,7 +79,7 @@ |
void EventDispatcher::dispatchSimulatedClick(Node* node, Event* underlyingEvent, SimulatedClickMouseEventOptions mouseEventOptions, SimulatedClickVisualOptions visualOptions) |
{ |
- if (node->isElementNode() && toElement(node)->disabled()) |
+ if (node->disabled()) |
return; |
if (!gNodesDispatchingSimulatedClicks) |