2006-03-20 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Mar 2006 10:53:05 +0000 (10:53 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Mar 2006 10:53:05 +0000 (10:53 +0000)
commit0a20104b36ae7fec4e36412f965693cba7dac22a
treec88874aafbab04debcb5bc1dd5dc8a2be021e7fc
parent4c2207f12d4d4ba997abbe9855af51a8fdb8f1d9
2006-03-20  Eric Seidel  <eseidel@apple.com>

        Reviewed by mjs.

        Fix a unsafe static cast causing intermittent crashes.
        <rdar://problem/4411663> crash at KXMLCore::RefPtr<WebCore::DOMStringImpl>::get() const + 20 (RefPtr.h:45)

        Test: fast/dom/NodeList/item-by-id-with-no-document.html

        * dom/NodeList.cpp:
        (WebCore::NodeList::itemById): fix unsafe static cast.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/NodeList/item-by-id-with-no-document-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/NodeList/item-by-id-with-no-document.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/NodeList.cpp