The timer in Style::Scope should be replaced with a rendering update or whatever Document::updateStyleIfNeeded() does.
This timer's construction time shows up in Speedometer profiles.
Created attachment 419002 [details] patch
Nice!
Created attachment 419110 [details] patch
Created attachment 419111 [details] patch
Committed r272300: <https://trac.webkit.org/changeset/272300> All reviewed patches have been landed. Closing bug and clearing flags on attachment 419111 [details].
<rdar://problem/73918532>
Reverted r272300 for reason: Caused imported/w3c/web-platform-tests/css/css-scoping/css-scoping-shadow-dynamic-remove-style-detached.html to consistently fail on bots Committed r272336: <https://trac.webkit.org/changeset/272336>
Created attachment 419263 [details] patch
Committed r272370: <https://trac.webkit.org/changeset/272370> All reviewed patches have been landed. Closing bug and clearing flags on attachment 419263 [details].
Created attachment 419360 [details] TestExpectation followup imported/w3c/web-platform-tests/css/css-scoping/css-scoping-shadow-dynamic-remove-style-detached.html shouldn't be flaky anymore
add a followup
commit-queue failed to commit attachment 419360 [details] to WebKit repository. To retry, please set cq+ flag again.
Committed r272460: <https://trac.webkit.org/changeset/272460> All reviewed patches have been landed. Closing bug and clearing flags on attachment 419360 [details].