diff options
| author | Michael Howell <michael@notriddle.com> | 2023-10-07 11:10:36 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-10-11 10:28:54 -0700 |
| commit | 77fa09d9a1ddc7f99b0cda10c26688fe6f2b5519 (patch) | |
| tree | b76927e6c8a1fd0388c574ff7dd2bdca289a4bf0 /compiler/rustc_pattern_analysis/src | |
| parent | 9aabfd589251b62dacf83b201df122d98b933c45 (diff) | |
| download | rust-77fa09d9a1ddc7f99b0cda10c26688fe6f2b5519.tar.gz rust-77fa09d9a1ddc7f99b0cda10c26688fe6f2b5519.zip | |
rustdoc: avoid whole page layout on each frame
This makes two changes, based on experimenting with different browsers: - It debounces resizing the body text. This improves behavior on huge pages like struct.Vec.html, because it doesn't have to do layout. - It does the sidebar width updates directly on the sidebar instead of doing it on the `<HTML>` element. Doing it on `<HTML>` causes it to recalculate CSS for the entire document, also causing layout jank.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
