| Index: third_party/WebKit/Source/core/events/EventListenerMap.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/EventListenerMap.cpp b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
|
| index cd0c46291a0292c3aac10e0b1948f4e3460907da..e76767bfcce8d38849c48eda4e7f654a3ad0f856 100644
|
| --- a/third_party/WebKit/Source/core/events/EventListenerMap.cpp
|
| +++ b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
|
| @@ -79,6 +79,18 @@ bool EventListenerMap::containsCapturing(const AtomicString& eventType) const {
|
| return false;
|
| }
|
|
|
| +bool EventListenerMap::containsBlocking(const AtomicString& eventType) const {
|
| + for (const auto& entry : m_entries) {
|
| + if (entry.first == eventType) {
|
| + for (const auto& eventListener : *entry.second) {
|
| + if (!eventListener.passive())
|
| + return true;
|
| + }
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +
|
| void EventListenerMap::clear() {
|
| checkNoActiveIterators();
|
|
|
|
|