Summary: | [perf dashboard] Use ResizeObserver in ComponentBase | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
Component: | Tools / Tests | Assignee: | Ryosuke Niwa <rniwa> | ||||||
Status: | NEW --- | ||||||||
Severity: | Normal | CC: | cathiechen, dewei_zhu, koivisto, sam, simon.fraser, webkit-bug-importer, zhifei_fang | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Ryosuke Niwa
2021-03-06 19:07:44 PST
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. |