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

Unified Diff: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase Created 4 years, 11 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: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
index 2ce0f9e62096f4626b0e6e3aad70a93cbb05a348..1a8c32ca33cbb0f9825f24aa48f71c1b88e8461e 100644
--- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
+++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
@@ -195,12 +195,9 @@ void EventHandlerRegistry::didRemoveAllEventHandlers(EventTarget& target)
void EventHandlerRegistry::notifyHasHandlersChanged(EventHandlerClass handlerClass, bool hasActiveHandlers)
{
- ScrollingCoordinator* scrollingCoordinator = m_frameHost->page().scrollingCoordinator();
-
switch (handlerClass) {
case ScrollEvent:
- if (scrollingCoordinator)
- scrollingCoordinator->updateHaveScrollEventHandlers();
+ m_frameHost->chromeClient().setHaveScrollEventHandlers(hasActiveHandlers);
break;
case WheelEvent:
m_frameHost->chromeClient().setHaveWheelEventHandlers(hasActiveHandlers);
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.cc ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698