diff options
Diffstat (limited to 'WebCore/inspector/InspectorTimelineAgent.h')
-rw-r--r-- | WebCore/inspector/InspectorTimelineAgent.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/WebCore/inspector/InspectorTimelineAgent.h b/WebCore/inspector/InspectorTimelineAgent.h index 1929286..fd86ba7 100644 --- a/WebCore/inspector/InspectorTimelineAgent.h +++ b/WebCore/inspector/InspectorTimelineAgent.h @@ -65,7 +65,7 @@ namespace WebCore { ResourceFinishTimelineRecordType = 14, }; - class InspectorTimelineAgent { + class InspectorTimelineAgent : public Noncopyable { public: InspectorTimelineAgent(InspectorFrontend* frontend); ~InspectorTimelineAgent(); @@ -86,8 +86,8 @@ namespace WebCore { void willPaint(const IntRect&); void didPaint(); - void willWriteHTML(); - void didWriteHTML(); + void willWriteHTML(unsigned int length, unsigned int startLine); + void didWriteHTML(unsigned int endLine); void didInstallTimer(int timerId, int timeout, bool singleShot); void didRemoveTimer(int timerId); @@ -111,8 +111,9 @@ namespace WebCore { static InspectorTimelineAgent* retrieve(ScriptExecutionContext*); private: struct TimelineRecordEntry { - TimelineRecordEntry(ScriptObject record, ScriptArray children, TimelineRecordType type) : record(record), children(children), type(type) { } + TimelineRecordEntry(ScriptObject record, ScriptObject data, ScriptArray children, TimelineRecordType type) : record(record), data(data), children(children), type(type) { } ScriptObject record; + ScriptObject data; ScriptArray children; TimelineRecordType type; }; @@ -122,7 +123,7 @@ namespace WebCore { static double currentTimeInMilliseconds(); void didCompleteCurrentRecord(TimelineRecordType); - + void addRecordToTimeline(ScriptObject, TimelineRecordType); InspectorFrontend* m_frontend; @@ -132,7 +133,7 @@ namespace WebCore { inline InspectorTimelineAgent* InspectorTimelineAgent::retrieve(ScriptExecutionContext* context) { - if (context->isDocument()) + if (context && context->isDocument()) return static_cast<Document*>(context)->inspectorTimelineAgent(); return 0; } |