| Index: third_party/WebKit/Source/core/events/EventTarget.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| index eebbc970a39888170bcd91bc0d0942934f824d3d..0e63681afa13968b740bfcbab3032796d84d8acf 100644
|
| --- a/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| +++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| @@ -193,6 +193,12 @@ void EventTarget::setDefaultAddEventListenerOptions(const AtomicString& eventTyp
|
| return;
|
| }
|
|
|
| + if (LocalDOMWindow* executingWindow = this->executingWindow()) {
|
| + if (options.hasPassive()) {
|
| + UseCounter::count(executingWindow->document(), options.passive() ? UseCounter::AddEventListenerPassiveTrue : UseCounter::AddEventListenerPassiveFalse);
|
| + }
|
| + }
|
| +
|
| if (Settings* settings = windowSettings(executingWindow())) {
|
| switch (settings->passiveListenerDefault()) {
|
| case PassiveListenerDefault::False:
|
|
|