Changeset 26101 in webkit


Ignore:
Timestamp:
Oct 7, 2007 7:37:56 AM (17 years ago)
Author:
bdash
Message:

2007-10-07 Mark Rowe <mrowe@apple.com>

Reviewed by Maciej.

Bug 5122: Need an equivalent of Mozilla's DOMContentLoaded event
http://bugs.webkit.org/show_bug.cgi?id=5122

This is based on a patch by Daniel Peebles (pumpkingod@gmail.com).

Test: http/tests/loading/DOMContentLoaded-event.html

  • dom/Document.cpp: (WebCore::Document::finishedParsing): Dispatch the DOMContentLoaded event when parsing completes.
  • dom/EventNames.h: Add DOMContentLoaded to the list of events.

2007-10-07 Mark Rowe <mrowe@apple.com>

Reviewed by Maciej.

Test for Bug 5122: Need an equivalent of Mozilla's DOMContentLoaded event
http://bugs.webkit.org/show_bug.cgi?id=5122

  • http/tests/loading/DOMContentLoaded-event-expected.txt: Added.
  • http/tests/loading/DOMContentLoaded-event.html: Added.
Location:
branches/feature-branch
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-branch/LayoutTests/ChangeLog

    r26100 r26101  
     12007-10-07  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Maciej.
     4
     5        Test for Bug 5122: Need an equivalent of Mozilla's DOMContentLoaded event
     6        http://bugs.webkit.org/show_bug.cgi?id=5122
     7
     8        * http/tests/loading/DOMContentLoaded-event-expected.txt: Added.
     9        * http/tests/loading/DOMContentLoaded-event.html: Added.
     10
    1112007-10-07  Nikolas Zimmermann  <zimmermann@kde.org>
    212
  • branches/feature-branch/WebCore/ChangeLog

    r26097 r26101  
     12007-10-07  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Maciej.
     4
     5        Bug 5122: Need an equivalent of Mozilla's DOMContentLoaded event
     6        http://bugs.webkit.org/show_bug.cgi?id=5122
     7
     8        This is based on a patch by Daniel Peebles (pumpkingod@gmail.com).
     9
     10        Test: http/tests/loading/DOMContentLoaded-event.html
     11
     12        * dom/Document.cpp:
     13        (WebCore::Document::finishedParsing): Dispatch the DOMContentLoaded event when parsing completes.
     14        * dom/EventNames.h:  Add DOMContentLoaded to the list of events.
     15
    1162007-10-07  Alexey Proskuryakov  <ap@webkit.org>
    217
  • branches/feature-branch/WebCore/dom/Document.cpp

    r26094 r26101  
    34633463{
    34643464    setParsing(false);
     3465
     3466    ExceptionCode ec = 0;
     3467    dispatchEvent(new Event(DOMContentLoadedEvent, true, false), ec);
     3468
    34653469    if (Frame* f = frame())
    34663470        f->loader()->finishedParsing();
  • branches/feature-branch/WebCore/dom/EventNames.h

    r25754 r26101  
    8585    macro(DOMNodeRemovedFromDocument) \
    8686    macro(DOMSubtreeModified) \
     87    macro(DOMContentLoaded) \
    8788    \
    8889    macro(webkitBeforeTextInserted) \
Note: See TracChangeset for help on using the changeset viewer.