Reviewed by Darin.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 May 2005 01:16:01 +0000 (01:16 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 May 2005 01:16:01 +0000 (01:16 +0000)
commit950c43bc90689ee414052ec4584d3813a194a01b
treef275e00ad8a1a78c7cd0fae7c2a94b0213948022
parentd39014743a7b6e1bbcc860ebb747161956483911
    Reviewed by Darin.

        fix for <rdar://problem/4061979> crash in DOM::ElementImpl::setAttribute at www.nitto-kohki.co.jp

        * khtml/html/html_imageimpl.cpp: (HTMLImageLoader::updateFromElement): added a nil check for the document
        * khtml/xml/dom_nodeimpl.h: (DOM::NodeImpl::inDocument): added check for document in case the document has been destroyed before the node has been removed.  A lot of code already assumes that if inDocument returns true, a document exists.

        * layout-tests/fast/events/onload-re-entry.html: removed alert.
        * layout-tests/fast/events/onload-re-entry-expected.txt: updated.
        * layout-tests/fast/dom/attr_dead_doc-expected.txt: Added.
        * layout-tests/fast/dom/attr_dead_doc.html: Added.
        * layout-tests/fast/dom/resources/apple.gif: Added.
        * layout-tests/fast/dom/resources/mozilla.gif: Added.
        * layout-tests/fast/dom/resources/top.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/dom/attr_dead_doc-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/attr_dead_doc.html [new file with mode: 0644]
LayoutTests/fast/dom/resources/apple.gif [new file with mode: 0644]
LayoutTests/fast/dom/resources/mozilla.gif [new file with mode: 0644]
LayoutTests/fast/dom/resources/top.html [new file with mode: 0644]
LayoutTests/fast/events/onload-re-entry.html
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_imageimpl.cpp
WebCore/khtml/xml/dom_nodeimpl.h