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

Unified Diff: sky/engine/core/inspector/InspectorTraceEvents.cpp

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 years, 1 month 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: sky/engine/core/inspector/InspectorTraceEvents.cpp
diff --git a/sky/engine/core/inspector/InspectorTraceEvents.cpp b/sky/engine/core/inspector/InspectorTraceEvents.cpp
index 2fe53adf5d46d8c169c57105424d6253405b9665..56bf3d698639da161e22250045f27530631d4634 100644
--- a/sky/engine/core/inspector/InspectorTraceEvents.cpp
+++ b/sky/engine/core/inspector/InspectorTraceEvents.cpp
@@ -10,6 +10,7 @@
#include "bindings/core/v8/ScriptSourceCode.h"
#include "core/events/Event.h"
#include "core/frame/FrameView.h"
+#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/inspector/IdentifiersFactory.h"
#include "core/inspector/InspectorNodeIds.h"
@@ -17,11 +18,11 @@
#include "core/page/Page.h"
#include "core/rendering/RenderImage.h"
#include "core/rendering/RenderObject.h"
-#include "platform/JSONValues.h"
-#include "platform/TracedValue.h"
#include "platform/graphics/GraphicsLayer.h"
+#include "platform/JSONValues.h"
#include "platform/network/ResourceRequest.h"
#include "platform/network/ResourceResponse.h"
+#include "platform/TracedValue.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Vector.h"
#include <inttypes.h>
@@ -158,7 +159,7 @@ static LocalFrame* frameForExecutionContext(ExecutionContext* context)
{
LocalFrame* frame = 0;
if (context->isDocument())
- frame = toDocument(context)->frame();
+ frame = context->executingWindow()->frame();
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698