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

Unified Diff: third_party/WebKit/Source/core/events/EventListenerMap.cpp

Issue 2600593002: Fix touch event flag may not be updated correctly by transform which causes no layout (Closed)
Patch Set: Update the logic to focus on non-passive touchEvents Created 3 years, 12 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/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();

Powered by Google App Engine
This is Rietveld 408576698