• mjs's avatar
    Reviewed by Darin. · 81a1bf4e
    mjs authored
    	- fixed 3129008 - REGRESSION: Successive hot/cached runs of cvs-base PLT are slightly slower
    
    	This was due to me reintroducing a leak of the document. Now fixed.
    
            * khtml/ecma/kjs_dom.cpp:
            (DOMDocument::~DOMDocument): forget self from cached DOM object table.
            (KJS::getDOMDocumentNode): Instead of storing the document in the
    	marked per-document table, store it in the unmarked table, and as
    	a property on the Window object.
            (KJS::getDOMNode): use getDocumentNode when appropriate.
            * khtml/ecma/kjs_dom.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    81a1bf4e
kjs_dom.h 12.8 KB