• mjs's avatar
    Reviewed by Darin. · 4d93d495
    mjs authored
    	- fixed 3128383 - DOM nodes should always use the same JS object
    
            * khtml/ecma/kjs_binding.h:
            * khtml/ecma/kjs_binding.cpp:
            (ScriptInterpreter::ScriptInterpreter): Set auto-delete to true on
    	document dictionary.
            (ScriptInterpreter::getDOMObjectForDocument): New function - gets
    	DOM object from per-document dictionary.
            (ScriptInterpreter::putDOMObjectForDocument): New function - put
    	DOM object into per-document dictionary.
            (ScriptInterpreter::deleteDOMObjectsForDocument): Clear all
    	objects from specific per-document dictionary.
            (ScriptInterpreter::mark): Mark per-document objects.
    	(ScriptInterpreter::forgetDOMObjectsForDocument): Clear objects
    	for this document from all interpreters.
            * khtml/ecma/kjs_dom.h:
            * khtml/ecma/kjs_dom.cpp:
            (KJS::getDOMNode): Use per-document rather than general DOM object
    	dictionary.
            * khtml/xml/dom_docimpl.cpp:
            (DocumentImpl::~DocumentImpl): Call forgetDOMObjectsForDocument.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4d93d495
ChangeLog-2005-08-23 76.2 KB