2010-11-04 James Simonsen <simonjam@chromium.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Nov 2010 08:36:17 +0000 (08:36 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Nov 2010 08:36:17 +0000 (08:36 +0000)
commit7e11a75bfa7bf63cb89072e99eb0efce0aa74c62
tree087079d7989c42e7ba98c872be6d2427719aa443
parentfad71c36fb1445ac916cebcd7648630bf90f956a
2010-11-04  James Simonsen  <simonjam@chromium.org>

        Reviewed by Darin Fisher.

        [Web Timing] Implement dom* timing marks
        https://bugs.webkit.org/show_bug.cgi?id=46301

        * fast/dom/Window/window-properties-performance-expected.txt:
        * fast/dom/script-tests/webtiming-async.js: Added.
        * fast/dom/script-tests/webtiming-defer.js: Added.
        * fast/dom/script-tests/webtiming-document-open.js: Added.
        (testTimingWithDocumentOpen):
        * fast/dom/script-tests/webtiming-navigate-within-document.js:
        (checkTimingNotChanged): Added dom timing.
        * fast/dom/script-tests/webtiming.js:
        (checkTimingBeforeLoad): Added dom timing.
        (checkTimingWhileDeferred): Added.
        (checkWebTimingWhileAsync): Added.
        (checkWebTimingOnLoad): Added dom timing.
        (checkWebTimingAfterLoad): Added dom timing.
        * fast/dom/webtiming-document-open-expected.txt: Added.
        * fast/dom/webtiming-document-open.html: Added.
        * fast/dom/webtiming-expected.txt:
        * fast/dom/webtiming-navigate-within-document-expected.txt:
        * fast/dom/webtiming.html: Added async and defer tests.
        * platform/mac/Skipped: Skip new webtiming test.
2010-11-04  James Simonsen  <simonjam@chromium.org>

        Reviewed by Darin Fisher.

        [Web Timing] Implement dom* timing marks
        https://bugs.webkit.org/show_bug.cgi?id=46301

        Test: fast/dom/webtiming-document-open.html

        * GNUmakefile.am: Added DocumentTiming.h
        * WebCore.gypi: Ditto.
        * WebCore.vcproj/WebCore.vcproj: Ditto.
        * WebCore.xcodeproj/project.pbxproj: Ditto.
        * dom/Document.cpp:
        (WebCore::Document::setReadyState): Set DOM WebTiming marks.
        (WebCore::Document::finishedParsing): Set DOM WebTiming marks.
        * dom/Document.h:
        (WebCore::Document::timing): Added.
        * dom/DocumentTiming.h: Added.
        (WebCore::DocumentTiming::DocumentTiming):
        * page/Timing.cpp: Added DOM timing.
        (WebCore::Timing::domLoading): Ditto.
        (WebCore::Timing::domInteractive): Ditto.
        (WebCore::Timing::domContentLoaded): Ditto.
        (WebCore::Timing::domComplete): Ditto.
        (WebCore::Timing::documentTiming): Ditto.
        * page/Timing.h: Ditto.
        * page/Timing.idl: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-performance-expected.txt
LayoutTests/fast/dom/script-tests/webtiming-async.js [new file with mode: 0644]
LayoutTests/fast/dom/script-tests/webtiming-defer.js [new file with mode: 0644]
LayoutTests/fast/dom/script-tests/webtiming-document-open.js [new file with mode: 0644]
LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
LayoutTests/fast/dom/script-tests/webtiming.js
LayoutTests/fast/dom/webtiming-document-open-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/webtiming-document-open.html [new file with mode: 0644]
LayoutTests/fast/dom/webtiming-expected.txt
LayoutTests/fast/dom/webtiming-navigate-within-document-expected.txt
LayoutTests/fast/dom/webtiming.html
LayoutTests/platform/mac/Skipped
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/dom/DocumentTiming.h [new file with mode: 0644]
WebCore/page/Timing.cpp
WebCore/page/Timing.h
WebCore/page/Timing.idl