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

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

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Rebase Created 4 years, 10 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/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index b3af2ed7e9203192ae38ab52071622824df56cfa..661356fdc1b58ff0d121b19919aea216c45ea89d 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1304,7 +1304,7 @@ bool LocalDOMWindow::addEventListenerInternal(const AtomicString& eventType, Pas
return false;
if (frame() && frame()->host())
- frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventType);
+ frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventType, options);
if (Document* document = this->document()) {
document->addListenerTypeIfNeeded(eventType);
@@ -1337,7 +1337,7 @@ bool LocalDOMWindow::removeEventListenerInternal(const AtomicString& eventType,
return false;
if (frame() && frame()->host())
- frame()->host()->eventHandlerRegistry().didRemoveEventHandler(*this, eventType);
+ frame()->host()->eventHandlerRegistry().didRemoveEventHandler(*this, eventType, options);
notifyRemoveEventListener(this, eventType);

Powered by Google App Engine
This is Rietveld 408576698