Bug 229410 - Optimize inert attribute
Summary: Optimize inert attribute
Status: RESOLVED DUPLICATE of bug 229330
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 165279
  Show dependency treegraph
 
Reported: 2021-08-23 08:37 PDT by Tim Nguyen (:ntim)
Modified: 2021-10-04 00:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***