Reviewed by Adele.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 01:27:59 +0000 (01:27 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 01:27:59 +0000 (01:27 +0000)
commit2bd3b984f85623aee1cef42ee1ff5f6bf90043c7
treef63113e7540f8b05bc6cc65904b948a9e28a32ea
parent612d2f97b20475cada59cd5f3e72cd82494ab601
    Reviewed by Adele.

        - fixed <rdar://problem/4006596> REGRESSION (183-184): crash in DOM::DocumentImpl::setFocusNode(DOM::NodeImpl*)

        * khtml/xml/dom_docimpl.cpp:
        (widgetForNode): Added helper.
        (DocumentImpl::setFocusNode): Re-get the widget for the node after calling updateLayout.
        The updateLayout can destroy the old widget, so we can't keep a stale widget pointer around.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_docimpl.cpp