Modernize ComponentBase and related classes using technologies shipped in Safari 14.
Created attachment 422518 [details] Patch
Comment on attachment 422518 [details] Patch Actually, this broke something.
Created attachment 422519 [details] Patch
Comment on attachment 422519 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422519&action=review > Websites/perf.webkit.org/ChangeLog:9 > + > + Simplify the code used to schedule re-rendering of components that dependent on its size > + using ResizeObserver which has been shipping since Safari 14. Should we remove ResizeObserver from Experimental Features at this point then? (I filed https://bugs.webkit.org/show_bug.cgi?id=222885 to try and formalize the rules for experimental features, but it seems like if we shipped it already, it probably makes sense to transition away).
Comment on attachment 422519 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422519&action=review > Websites/perf.webkit.org/public/v3/components/base.js:181 > + if (lastObservedSize.width == newSize.width && lastObservedSize.height == newSize.height) It seems lastObservedSize isn't needed here? But there's a slit difference. ResizeObserver observes the contentSize.
<rdar://problem/75400353>