mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00

Here we make updates on reflow slower (with a throttle) cause we don't really need to update live. We also filter all reflows that do not cause either the list of grids or the current outline to change. Finally, we also attach NodeActors to GridActor forms (when they are know) in order to avoid one more round-trip to the server. Globally, this makes performance of the grid panel far better on pages that cause many reflows. Note that this commit also fixes a debounce vs. throttle confusion that existed in an inspector utils file. The throttle function there was actually a debounce function, so it was renamed, and an actual throttle function was added. MozReview-Commit-ID: GeqgZR0o0E6 --HG-- extra : rebase_source : 6b9719379dcbd4479bded26014aa3742bd75208e