Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: Source/core/dom/EventTarget.cpp

Issue 22859012: Add support for DOM Level 3 WheelEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify test case Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/EventTarget.cpp
diff --git a/Source/core/dom/EventTarget.cpp b/Source/core/dom/EventTarget.cpp
index db4032152b38c8c78206f0b42599858ce018126c..48315742d557c8419737ff727a77b944c0bcf4f9 100644
--- a/Source/core/dom/EventTarget.cpp
+++ b/Source/core/dom/EventTarget.cpp
@@ -181,6 +181,9 @@ static AtomicString prefixedType(const Event* event)
if (event->type() == eventNames().transitionendEvent)
return eventNames().webkitTransitionEndEvent;
+ if (event->type() == eventNames().wheelEvent)
+ return eventNames().mousewheelEvent;
+
return emptyString();
}
@@ -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)

Powered by Google App Engine
This is Rietveld 408576698