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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 311903002: Remove dead notification for number of wheel event handlers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another try. Created 6 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 | « Source/core/frame/LocalFrame.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 4d3efeb245a023f227dab755da88aab142243de8..6ccdde05b9880b0ec9e205fa58f53f45a175f950 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -510,22 +510,6 @@ void LocalFrame::deviceOrPageScaleFactorChanged()
child->deviceOrPageScaleFactorChanged();
}
-void LocalFrame::notifyChromeClientWheelEventHandlerCountChanged() const
-{
- // FIXME: No-one is using this information, so remove this code.
- // Ensure that this method is being called on the main frame of the page.
- ASSERT(isMainFrame());
-
- EventHandlerRegistry& registry = m_host->eventHandlerRegistry();
- unsigned count = 0;
- if (const EventTargetSet* targets = registry.eventHandlerTargets(EventHandlerRegistry::WheelEvent)) {
- for (EventTargetSet::const_iterator iter = targets->begin(); iter != targets->end(); ++iter)
- count += iter->value;
- }
-
- m_host->chrome().client().numWheelEventHandlersChanged(count);
-}
-
bool LocalFrame::isURLAllowed(const KURL& url) const
{
// We allow one level of self-reference because some sites depend on that,
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698