about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-10-07 11:10:36 -0700
committerMichael Howell <michael@notriddle.com>2023-10-11 10:28:54 -0700
commit77fa09d9a1ddc7f99b0cda10c26688fe6f2b5519 (patch)
treeb76927e6c8a1fd0388c574ff7dd2bdca289a4bf0 /compiler/rustc_pattern_analysis/src
parent9aabfd589251b62dacf83b201df122d98b933c45 (diff)
downloadrust-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