Web Inspector: added Paint events for Images to TimelineAgent
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2012 17:22:44 +0000 (17:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2012 17:22:44 +0000 (17:22 +0000)
commit733d19e2a1cf5b941ebf8cd3b04e7d99d5a27290
treec5550dde419b1379d801fbbba461eb20dc6c7a0f
parentb6e1d8568d8af62e1494059b9898f4d5f8862cd8
Web Inspector: added Paint events for Images to TimelineAgent
https://bugs.webkit.org/show_bug.cgi?id=90277

Patch by Sergey Rogulenko <rogulenko@google.com> on 2012-08-16
Reviewed by Pavel Feldman.

Source/WebCore:

- add DecodeImage & ResizeImage timeline events;
- implement {will,did}DecodeImage and {will,did}ResizeImage methods of Timeline agent;

Test: inspector/timeline/timeline-decode-resize.html

* English.lproj/localizedStrings.js:
* inspector/InspectorTimelineAgent.cpp:
(TimelineRecordType):
(WebCore::InspectorTimelineAgent::willDecodeImage):
(WebCore::InspectorTimelineAgent::didDecodeImage):
(WebCore::InspectorTimelineAgent::willResizeImage):
(WebCore::InspectorTimelineAgent::didResizeImage):
* inspector/TimelineRecordFactory.cpp:
(WebCore::TimelineRecordFactory::createDecodeImageData):
(WebCore):
(WebCore::TimelineRecordFactory::createResizeImageData):
* inspector/TimelineRecordFactory.h:
(TimelineRecordFactory):
* inspector/front-end/TimelineModel.js:
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.initRecordStyles_):
(WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):

LayoutTests:

Added a test and fixed enum-stabitily because of a new Timeline Event.

* inspector/timeline/resources/big.png: Added.
* inspector/timeline/resources/test.bmp: Added.
* inspector/timeline/resources/test.gif: Added.
* inspector/timeline/resources/test.ico: Added.
* inspector/timeline/resources/test.jpg: Added.
* inspector/timeline/resources/test.png: Added.
* inspector/timeline/resources/test.webp: Added.
* inspector/timeline/timeline-decode-resize-expected.txt: Added.
* inspector/timeline/timeline-decode-resize.html: Added.
* inspector/timeline/timeline-enum-stability-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/timeline/resources/big.png [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.bmp [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.gif [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.ico [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.jpg [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.png [new file with mode: 0755]
LayoutTests/inspector/timeline/resources/test.webp [new file with mode: 0755]
LayoutTests/inspector/timeline/timeline-decode-resize-expected.txt [new file with mode: 0644]
LayoutTests/inspector/timeline/timeline-decode-resize.html [new file with mode: 0644]
LayoutTests/inspector/timeline/timeline-enum-stability-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/localizedStrings.js
Source/WebCore/inspector/InspectorTimelineAgent.cpp
Source/WebCore/inspector/TimelineRecordFactory.cpp
Source/WebCore/inspector/TimelineRecordFactory.h
Source/WebCore/inspector/front-end/TimelineModel.js
Source/WebCore/inspector/front-end/TimelinePresentationModel.js