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

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

Issue 1893333004: [DevTools] Bring back InspectorInstrumenetation::didHandleEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
index 75dd047785852551ff31e1d7df26a9d60600b6ad..b99508373c8a5a119e51baea45c20569f332b8b1 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -439,7 +439,7 @@ void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
event->setHandlingPassive(registeredListener.passive);
- InspectorInstrumentation::willHandleEvent(this, event, registeredListener.listener.get(), registeredListener.useCapture);
+ InspectorInstrumentationCookie cookie = InspectorInstrumentation::willHandleEvent(this, event, registeredListener.listener.get(), registeredListener.useCapture);
// To match Mozilla, the AT_TARGET phase fires both capturing and bubbling
// event listeners, even though that violates some versions of the DOM spec.
@@ -447,6 +447,8 @@ void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
event->setHandlingPassive(false);
RELEASE_ASSERT(i <= size);
+
+ InspectorInstrumentation::cancelPauseOnNextStatement(cookie);
}
d->firingEventIterators->removeLast();
}

Powered by Google App Engine
This is Rietveld 408576698