Skip to content
  • slewis@apple.com's avatar
    2008-05-15 Stephanie Lewis <slewis@apple.com> · 930e76d0
    slewis@apple.com authored
            Reviewed by Anders.
    
            Keep track on pending unload event counts
    
            No change in behavior so no new tests, but I am dumping the 
            unload event count to track the new variable.
    
            * WebCore.base.exp:
    
            increment/decrement the count when an event is added/removed
            * dom/Document.cpp:
            (WebCore::Document::removeHTMLWindowEventListener):
            (WebCore::Document::addWindowEventListener):
            (WebCore::Document::removeWindowEventListener):
            (WebCore::Document::setPendingFrameUnloadEventCount):
            * dom/Document.h:
    
            set the count to 0 for each frame after the unload event has been dispatched
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::stopLoading):
    
            keep track of the number of pending unload events for the eventHandler's frame
            * page/EventHandler.cpp:
            (WebCore::EventHandler::EventHandler):
           (WebCore::EventHandler::pendingFrameUnloadEventCount):
            (WebCore::EventHandler::setPendingFrameUnloadEventCount):
            * page/EventHandler.h:
    
            keep track of the total number of pending unload events for all of the frames
            * page/Page.cpp:
            (WebCore::Page::Page):
            (WebCore::Page::pendingUnloadEventCount):
            (WebCore::Page::setPendingUnloadEventCount):
               age/Page.h:
    
            get the pending frame unload count from WebCore
    
            * WebView/WebFrame.mm:
            (-[WebFrame _pendingFrameUnloadEventCount]):
            * WebView/WebFramePrivate.h:
    
            Dump the unload count for a frame after parsing is finished.
    
            * DumpRenderTree/mac/FrameLoadDelegate.mm:
            (-[FrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
    
            Dump unload event counts for frames.
    
            * fast/dom/Window/get-set-properties-expected.txt:
            * fast/events/onunload-expected.txt:
            * fast/events/onunload-not-on-body-expected.txt:
            * fast/events/onunload-window-property-expected.txt:
            * fast/forms/button-state-restore-expected.txt:
            * fast/history/history_reload-expected.txt:
            * fast/loader/onunload-form-submit-crash-2-expected.txt:
            * fast/loader/onunload-form-submit-crash-expected.txt:
            * http/tests/xmlhttprequest/xhr-onunload-expected.txt:
            * platform/mac/fast/loader/start-load-in-unload-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    930e76d0