RESOLVED FIXED 80994
Web Inspector: add didCancelFrame timeline event
https://bugs.webkit.org/show_bug.cgi?id=80994
Summary Web Inspector: add didCancelFrame timeline event
Andrey Kosyakov
Reported 2012-03-13 08:53:28 PDT
This adds a an ability to cancel certain timeline events, unless they've been followed by other events. The above is used to implement didCancelFrame() event, which is fired when a platform decides not to render frame after didBeginFrame() was called.
Attachments
Patch (11.99 KB, patch)
2012-03-13 08:57 PDT, Andrey Kosyakov
no flags
Patch (16.24 KB, patch)
2012-03-13 10:57 PDT, Andrey Kosyakov
no flags
Patch (17.20 KB, patch)
2012-03-13 11:18 PDT, Andrey Kosyakov
no flags
Patch (17.95 KB, patch)
2012-03-14 02:25 PDT, Andrey Kosyakov
pfeldman: review+
gustavo: commit-queue-
Andrey Kosyakov
Comment 1 2012-03-13 08:57:23 PDT
WebKit Review Bot
Comment 2 2012-03-13 08:59:44 PDT
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
Pavel Feldman
Comment 3 2012-03-13 09:48:25 PDT
Comment on attachment 131628 [details] Patch Please provide a test.
Andrey Kosyakov
Comment 4 2012-03-13 10:57:49 PDT
Andrey Kosyakov
Comment 5 2012-03-13 11:18:24 PDT
Pavel Feldman
Comment 6 2012-03-13 11:30:04 PDT
Comment on attachment 131671 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=131671&action=review Overall looks good, a bunch of nits to be fixed prior to landing. > Source/WebCore/ChangeLog:6 > + Reviewed by NOBODY (OOPS!). Could you generate fresh ChangeLogs? > Source/WebCore/inspector/InspectorTimelineAgent.cpp:177 > + pushCancellableRecord(InspectorObject::create(), TimelineRecordType::BeginFrame); "Cancelable" ? > Source/WebCore/inspector/InspectorTimelineAgent.cpp:423 > entry.record->setArray("children", entry.children); You should move children to under the cancelable as well. > Source/WebCore/inspector/InspectorTimelineAgent.cpp:466 > + didCompleteCurrentRecord(m_recordStack.last().type); didCompleteCurrentRecord is not applicable to atomic events, you should do appendRecord instead. I am not sure you even need a stack for them. > Source/WebCore/testing/Internals.cpp:676 > +void Internals::emitTimelineDidBeginFrame() emitInspectorDidBeginFrame ?
Build Bot
Comment 7 2012-03-13 12:27:41 PDT
Gustavo Noronha (kov)
Comment 8 2012-03-13 15:00:15 PDT
Collabora GTK+ EWS bot
Comment 9 2012-03-13 17:23:36 PDT
Andrey Kosyakov
Comment 10 2012-03-14 02:25:15 PDT
Pavel Feldman
Comment 11 2012-03-14 02:36:44 PDT
Comment on attachment 131813 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=131813&action=review > Source/WebCore/inspector/InspectorTimelineAgent.cpp:459 > + m_recordStack.append(TimelineRecordEntry(record.release(), data, InspectorArray::create(), type, true)); I'd be great if we could make this children array nullable.
Gustavo Noronha (kov)
Comment 12 2012-03-14 03:19:01 PDT
Build Bot
Comment 13 2012-03-14 03:43:11 PDT
Andrey Kosyakov
Comment 14 2012-03-14 09:06:06 PDT
Note You need to log in before you can comment on or make changes to this bug.