Index: Source/WebCore/dom/MouseEvent.cpp |
=================================================================== |
--- Source/WebCore/dom/MouseEvent.cpp (revision 146891) |
+++ Source/WebCore/dom/MouseEvent.cpp (working copy) |
@@ -300,7 +300,7 @@ |
return dispatcher->dispatch(); |
} |
- if (dispatcher->node()->isElementNode() && toElement(dispatcher->node())->disabled()) // Don't even send DOM events for disabled controls.. |
+ if (dispatcher->node()->disabled()) // Don't even send DOM events for disabled controls.. |
return false; |
if (event()->type().isEmpty()) |