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

Unified Diff: Source/core/inspector/InspectorInstrumentation.cpp

Issue 114033002: DevTools: Capture async stacks for event listeners. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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: Source/core/inspector/InspectorInstrumentation.cpp
diff --git a/Source/core/inspector/InspectorInstrumentation.cpp b/Source/core/inspector/InspectorInstrumentation.cpp
index bc982c73036bc89c49bfdfb00239c769f3de9729..9e5b7eb59b759e194845eb97989ad41a878ea187 100644
--- a/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/Source/core/inspector/InspectorInstrumentation.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "core/inspector/InspectorInstrumentation.h"
+#include "core/events/EventTarget.h"
#include "core/fetch/FetchInitiatorInfo.h"
#include "core/inspector/InspectorAgent.h"
#include "core/inspector/InspectorCSSAgent.h"
@@ -206,6 +207,13 @@ InstrumentingAgents* instrumentingAgentsFor(Page* page)
return instrumentationForPage(page);
}
+InstrumentingAgents* instrumentingAgentsFor(EventTarget* eventTarget)
+{
+ if (!eventTarget)
+ return 0;
+ return instrumentingAgentsFor(eventTarget->executionContext());
+}
+
InstrumentingAgents* instrumentingAgentsFor(RenderObject* renderer)
{
return instrumentingAgentsFor(renderer->frame());
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698