Index: WebCore/editing/DeleteButton.cpp |
=================================================================== |
--- WebCore/editing/DeleteButton.cpp (revision 67261) |
+++ WebCore/editing/DeleteButton.cpp (working copy) |
@@ -50,14 +50,10 @@ |
void DeleteButton::defaultEventHandler(Event* event) |
{ |
- // FIXME: Is it really import to check the type of the event? |
- // Seems OK to respond to any event named click even if it does not have the correct type. |
- if (event->isMouseEvent()) { |
- if (event->type() == eventNames().clickEvent) { |
- document()->frame()->editor()->deleteButtonController()->deleteTarget(); |
- event->setDefaultHandled(); |
- // FIXME: Shouldn't we return here instead of falling through? |
- } |
+ if (event->type() == eventNames().clickEvent) { |
+ document()->frame()->editor()->deleteButtonController()->deleteTarget(); |
+ event->setDefaultHandled(); |
+ return; |
} |
HTMLImageElement::defaultEventHandler(event); |