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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2049493002: Remove the default wheel event handler from blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove two tests, fix nit Created 4 years, 6 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 5af1c855cd7ffe772c342718393b3eae9f3b3bc5..c0853351774bffbdfa5051e2dc6152fc5c16f15d 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2165,19 +2165,6 @@ void Node::defaultEventHandler(Event* event)
}
}
#endif
- } else if ((eventType == EventTypeNames::wheel || eventType == EventTypeNames::mousewheel) && event->hasInterface(EventNames::WheelEvent)) {
- WheelEvent* wheelEvent = toWheelEvent(event);
-
- // If we don't have a layoutObject, send the wheel event to the first node we find with a layoutObject.
- // This is needed for <option> and <optgroup> elements so that <select>s get a wheel scroll.
- Node* startNode = this;
- while (startNode && !startNode->layoutObject())
- startNode = startNode->parentOrShadowHostNode();
-
- if (startNode && startNode->layoutObject()) {
- if (LocalFrame* frame = document().frame())
- frame->eventHandler().defaultWheelEventHandler(startNode, wheelEvent);
- }
} else if (event->type() == EventTypeNames::webkitEditableContentChanged) {
dispatchInputEvent();
}
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698