Bug 237546

Summary: skip scheduling lazy UA shadow tree creation if already created or not needed
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: FormsAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, mifenton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Cameron McCormack (:heycam)
Reported 2022-03-07 12:17:48 PST
Bug 236747 made <input> element UA shadow trees get created lazily. HTMLInputElement::insertedIntoAncestor now schedules the UA shadow tree to be created the next time style is flushed. We currently do this every time an <input> element is inserted into the document, but there's only a need to do this if the particular input type needs a shadow tree and we haven't already created it.
Attachments
Patch (1.57 KB, patch)
2022-03-08 12:02 PST, Cameron McCormack (:heycam)
no flags
Patch (2.00 KB, patch)
2022-03-08 12:15 PST, Cameron McCormack (:heycam)
no flags
Radar WebKit Bug Importer
Comment 1 2022-03-07 12:19:18 PST
Cameron McCormack (:heycam)
Comment 2 2022-03-08 12:02:19 PST
Aditya Keerthi
Comment 3 2022-03-08 12:11:38 PST
Comment on attachment 454140 [details] Patch Might be helpful to put your comment in the bug description in the ChangeLog file.
Cameron McCormack (:heycam)
Comment 4 2022-03-08 12:15:15 PST
EWS
Comment 5 2022-03-08 19:00:09 PST
Committed r291028 (248202@main): <https://commits.webkit.org/248202@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454142 [details].
Note You need to log in before you can comment on or make changes to this bug.