2008-05-01 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver (a while ago)
- just a wee bit more bindings speedup
Store the per-document Node --> JS wrapper cache in the document
instead of an external hashtable.
* bindings/js/kjs_binding.cpp:
(WebCore::ScriptInterpreter::getDOMNodeForDocument):
(WebCore::ScriptInterpreter::forgetDOMNodeForDocument):
(WebCore::ScriptInterpreter::putDOMNodeForDocument):
(WebCore::ScriptInterpreter::forgetAllDOMNodesForDocument):
(WebCore::ScriptInterpreter::markDOMNodesForDocument):
* dom/Document.h:
(WebCore::Document::wrapperCache):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32788
268f45cc-cd09-0410-ab3c-
d52691b4dbfc