Bug 59814 - Reduce amount of tree traversal after DOM manipulation
Summary: Reduce amount of tree traversal after DOM manipulation
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 72352 59802
  Show dependency treegraph
 
Reported: 2011-04-29 11:26 PDT by Roland Steiner
Modified: 2011-11-15 17:21 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Steiner 2011-04-29 11:26:46 PDT
After an operation that manipulates the DOM (node insertion or removal), we traverse the affected subtree twice: Once for setTreeScope/DocumentRecursively, and once for insertedInto/removedFromDocument/Tree(). We should be able to combine the updates into a single traversal.

Note that this applies to DOM manipulation outside of shadow DOM as well, but shadow DOM exacerbates the problem.
Comment 1 Dominic Cooney 2011-11-15 17:21:10 PST
This will be too complicated because the insertedInto/removedFromDocument/Tree callbacks will need to deal with TreeScope state that is not globally consistent.