Bug 229410

Summary: Optimize inert attribute
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: minthaylanaminthay, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 165279    

Description Tim Nguyen (:ntim) 2021-08-23 08:37:53 PDT
isInert does a tree traversal for the inert attribute.

One possible optimization is to add a flag on Document saying whether a node with an inert attribute has ever been used and only do the traversal in the case.

One thing to be careful of is nodes potentially moving documents.
Comment 1 Radar WebKit Bug Importer 2021-08-30 08:38:18 PDT
<rdar://problem/82529669>
Comment 2 Tim Nguyen (:ntim) 2021-10-04 00:39:35 PDT
Bug 229330 removes the tree traversal for most parts.

*** This bug has been marked as a duplicate of bug 229330 ***
Comment 3 BerMiolds 2024-06-13 18:58:14 PDT
All reviewed patches have been landed.  Closing bug.
https://bugs.webkit.org/ https://geometrydashsubzero.net