| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index 1a13ed7e7221e3099987f5358fd2ea2dcda11ad3..405cb16ec2468b061b2fb0b58f09246793b09857 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -33,7 +33,7 @@
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "bindings/v8/ScriptController.h"
|
| #include "core/dom/DocumentType.h"
|
| -#include "core/dom/WheelController.h"
|
| +#include "core/dom/EventHandlerRegistry.h"
|
| #include "core/editing/Editor.h"
|
| #include "core/editing/FrameSelection.h"
|
| #include "core/editing/InputMethodController.h"
|
| @@ -501,12 +501,7 @@ void LocalFrame::notifyChromeClientWheelEventHandlerCountChanged() const
|
| // Ensure that this method is being called on the main frame of the page.
|
| ASSERT(isMainFrame());
|
|
|
| - unsigned count = 0;
|
| - for (const LocalFrame* frame = this; frame; frame = frame->tree().traverseNext()) {
|
| - if (frame->document())
|
| - count += WheelController::from(*frame->document())->wheelEventHandlerCount();
|
| - }
|
| -
|
| + unsigned count = EventHandlerRegistry::from(*document())->eventHandlerCount(EventHandlerRegistry::WheelEvent);
|
| m_host->chrome().client().numWheelEventHandlersChanged(count);
|
| }
|
|
|
|
|