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

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.h

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/EventTarget.h
diff --git a/third_party/WebKit/Source/core/events/EventTarget.h b/third_party/WebKit/Source/core/events/EventTarget.h
index 6b77c11e6ed31818646a94f36c973757033a7652..5a60901c71111c83b0813c1cbe37a22f6fff7e9b 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.h
+++ b/third_party/WebKit/Source/core/events/EventTarget.h
@@ -158,6 +158,7 @@ class CORE_EXPORT EventTarget : public GarbageCollectedFinalized<EventTarget>,
bool hasEventListeners() const;
bool hasEventListeners(const AtomicString& eventType) const;
bool hasCapturingEventListeners(const AtomicString& eventType);
+ bool hasBlockingEventListeners(const AtomicString& eventType);
EventListenerVector* getEventListeners(const AtomicString& eventType);
Vector<AtomicString> eventTypes();
@@ -325,6 +326,13 @@ inline bool EventTarget::hasCapturingEventListeners(
return d->eventListenerMap.containsCapturing(eventType);
}
+inline bool EventTarget::hasBlockingEventListeners(
+ const AtomicString& eventType) {
+ EventTargetData* d = eventTargetData();
+ if (!d)
+ return false;
+ return d->eventListenerMap.containsBlocking(eventType);
+}
} // namespace blink
#endif // EventTarget_h

Powered by Google App Engine
This is Rietveld 408576698