-
eae@chromium.org authored
Reviewed by Dimitri Glazkov. input field with focus makes appendChild operation ~42x slower https://bugs.webkit.org/show_bug.cgi?id=57059 Add performance test for cloneNode when an input field has focus. * perf/clone-with-focus-expected.txt: Added. * perf/clone-with-focus.html: Added. 2011-04-15 Emil A Eklund <eae@chromium.org> Reviewed by Dimitri Glazkov. input field with focus makes appendChild operation ~42x slower https://bugs.webkit.org/show_bug.cgi?id=57059 Change ContainerNode::cloneChildNodes to only disable the deleteButtonController if the container itself (or any of its children) is being edited. Thus avoiding a reflow in cases where it's not. Test: perf/clone-with-focus.html * dom/ContainerNode.cpp: (WebCore::ContainerNode::cloneChildNodes): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
66e5ded8