Bug 59814

Summary: Reduce amount of tree traversal after DOM manipulation
Product: WebKit Reporter: Roland Steiner <rolandsteiner>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: dglazkov, dominicc, eae, morrita
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 72352, 59802    

Roland Steiner
Reported 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.
Attachments
Dominic Cooney
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.