RESOLVED FIXED 237546
skip scheduling lazy UA shadow tree creation if already created or not needed
https://bugs.webkit.org/show_bug.cgi?id=237546
Summary skip scheduling lazy UA shadow tree creation if already created or not needed
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.