LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Feb 2006 01:41:21 +0000 (01:41 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Feb 2006 01:41:21 +0000 (01:41 +0000)
commit247d114f9dfb8d02888a779c96d32d2941c29f7e
tree580f3faa922ff85c864d58bccdff608574712c9b
parent7e4abcc4a8114c2253b846b6da302c11fb51a230
LayoutTests:

        Reviewed by Maciej.

        - test for
        <rdar://problem/4325160> REGRESSION(416.12-420+): window events not stopped by stopPropagation (affects macnn forums)

        * fast/events/window-events-bubble-expected.txt: Added.
        * fast/events/window-events-bubble.html: Added.
        * fast/events/window-events-bubble2-expected.txt: Added.
        * fast/events/window-events-bubble2.html: Added.
        * fast/events/window-events-capture-expected.txt: Added.
        * fast/events/window-events-capture.html: Added.

WebCore:

        Reviewed by Maciej.

        - Fixed <rdar://problem/4325160>
          REGRESSION(416.12-420+): window events not stopped by stopPropagation (affects macnn forums)

        Tests:
        * fast/events/window-events-bubble.html
        * fast/events/window-events-bubble2.html
        * fast/events/window-events-capture.html

        * khtml/xml/DocumentImpl.cpp:
        (WebCore::DocumentImpl::handleWindowEvent): Added to send events directly to the window.  This code used to be in defaultEventHandler, but that wasn't sending them at the right time.
        (WebCore::DocumentImpl::defaultEventHandler): Moved code to send window events to handleWindowEvent.
        * khtml/xml/DocumentImpl.h: Added handleWindowEvent.
        * khtml/xml/NodeImpl.cpp:
        (WebCore::NodeImpl::dispatchGenericEvent): fire window events in capture and bubble phases.
        (WebCore::NodeImpl::dispatchWindowEvent): call handleWindowEvent.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/events/window-events-bubble-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/window-events-bubble.html [new file with mode: 0644]
LayoutTests/fast/events/window-events-bubble2-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/window-events-bubble2.html [new file with mode: 0644]
LayoutTests/fast/events/window-events-capture-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/window-events-capture.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/khtml/xml/DocumentImpl.cpp
WebCore/khtml/xml/DocumentImpl.h
WebCore/khtml/xml/NodeImpl.cpp
WebCore/khtml/xml/NodeImpl.h