Index: Source/core/dom/EventTarget.cpp |
diff --git a/Source/core/dom/EventTarget.cpp b/Source/core/dom/EventTarget.cpp |
index db4032152b38c8c78206f0b42599858ce018126c..e04248afc8f0cc2c5b195e6f53bcfd2367fe875b 100644 |
--- a/Source/core/dom/EventTarget.cpp |
+++ b/Source/core/dom/EventTarget.cpp |
@@ -176,11 +176,14 @@ void EventTarget::uncaughtExceptionInEventHandler() |
{ |
} |
-static AtomicString prefixedType(const Event* event) |
+static AtomicString legacyType(const Event* event) |
{ |
if (event->type() == eventNames().transitionendEvent) |
return eventNames().webkitTransitionEndEvent; |
+ if (event->type() == eventNames().wheelEvent) |
+ return eventNames().mousewheelEvent; |
+ |
return emptyString(); |
} |
@@ -194,7 +197,7 @@ bool EventTarget::fireEventListeners(Event* event) |
return true; |
EventListenerVector* listenerPrefixedVector = 0; |
- AtomicString prefixedTypeName = prefixedType(event); |
+ AtomicString prefixedTypeName = legacyType(event); |
if (!prefixedTypeName.isEmpty()) |
listenerPrefixedVector = d->eventListenerMap.find(prefixedTypeName); |
@@ -209,7 +212,7 @@ bool EventTarget::fireEventListeners(Event* event) |
event->setType(unprefixedTypeName); |
} |
- if (!prefixedTypeName.isEmpty()) { |
+ if (prefixedTypeName == eventNames().webkitTransitionEndEvent) { |
if (DOMWindow* executingWindow = this->executingWindow()) { |
if (listenerPrefixedVector) { |
if (listenerUnprefixedVector) |