Bug 240914

Summary: Move some of the work from Element::insertedIntoAncestor() / removedFromAncestor() to subclasses
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2022-05-25 10:38:49 PDT
Move some of the work from Element::insertedIntoAncestor() / removedFromAncestor() to subclasses. These functions are hot and should be kept as efficient as possible. There is no reason for every Element to pay run-time cost for checks that only apply to article or label elements.
Attachments
Chris Dumez
Comment 1 2022-05-25 10:49:30 PDT
EWS
Comment 2 2022-05-26 22:46:48 PDT
Committed r294930 (251041@main): <https://commits.webkit.org/251041@main> Reviewed commits have been landed. Closing PR #1017 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2022-05-26 22:47:14 PDT
Note You need to log in before you can comment on or make changes to this bug.