Bug 258916 - Avoid unnecessary tree traversal in customElements.define
Summary: Avoid unnecessary tree traversal in customElements.define
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-06 02:50 PDT by Ryosuke Niwa
Modified: 2023-07-06 16:44 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2023-07-06 02:50:20 PDT
customElements.define currently always traverses the entire document to find upgrade candidates.
Avoid this traversal whenever possible by keeping track of the number of upgrade candidates.
Comment 1 Ryosuke Niwa 2023-07-06 03:14:26 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15592