-
mjs@apple.com authored
Reviewed by Oliver Hunt. Fix REGRESSION (r47022): Performance of DocumentFragment.appendChild is 1000x slower sometimes https://bugs.webkit.org/show_bug.cgi?id=31237 Also speeds up Dromaeo DOM Core tests by 1.31x. * bindings/js/JSNodeCustom.cpp: (WebCore::JSNode::markChildren): Change marking algorithm to avoid O(N^2) behavior. The subtree mark bit was no longer effective; instead I changed things so only a node that has no ancestors with wrappers would do marking; there should be only one in the typical case (the root of the detached subtree). * dom/Node.cpp: (WebCore::Node::Node): Remove now useless m_inSubtreeMark bit and related functions. * dom/Node.h: ditto git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f6f7b9d4