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

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

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 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: Source/core/inspector/InspectorTraceEvents.cpp
diff --git a/Source/core/inspector/InspectorTraceEvents.cpp b/Source/core/inspector/InspectorTraceEvents.cpp
index 261f48465cc5982b5320b3c2ca0a34e5ea27fba2..6337aab7b4725b7b91686dee0644f8c7802001c5 100644
--- a/Source/core/inspector/InspectorTraceEvents.cpp
+++ b/Source/core/inspector/InspectorTraceEvents.cpp
@@ -426,11 +426,14 @@ PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimerFireEvent::data(E
return genericTimerData(context, timerId);
}
-PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationFrameEvent::data(Document* document, int callbackId)
+PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationFrameEvent::data(ExecutionContext* context, int callbackId)
dgozman 2015/03/31 10:10:05 Maybe this whole event makes sense only for docume
caseq 2015/03/31 10:27:42 From what I understand, we can no longer assume th
sadrul 2015/03/31 12:39:41 Considering for the Document, we simply list the p
sadrul 2015/03/31 16:40:27 Done.
{
RefPtr<TracedValue> value = TracedValue::create();
value->setInteger("id", callbackId);
- value->setString("frame", toHexString(document->frame()));
+ if (context->isDocument()) {
+ Document* document = toDocument(context);
+ value->setString("frame", toHexString(document->frame()));
+ }
setCallStack(value.get());
return value.release();
}

Powered by Google App Engine
This is Rietveld 408576698