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

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: Fix Android/ChromeOS build problems with bit packed enum class 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/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 0b78abf34b3ad0dc62b68b0b0a93b95a1a47e17e..275630560dfb33c2ecf725000c35cec33efc0679 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1296,7 +1296,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);
@@ -1329,7 +1329,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