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.
<rdar://problem/89922896>
Created attachment 454140 [details] Patch
Comment on attachment 454140 [details] Patch Might be helpful to put your comment in the bug description in the ChangeLog file.
Created attachment 454142 [details] Patch
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].