diff options
author | Oriol Brufau <obrufau@igalia.com> | 2023-08-04 10:19:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 08:19:41 +0000 |
commit | 66e0d543cfbaecb08ade2e071d6575f9f72f4dbb (patch) | |
tree | 7fc8f45c5deeda85b47af573415a5bd44c2dbd6d /components/script/dom/audionode.rs | |
parent | 51fa6c7e187ec4620e6994a9f16869ba782d92e8 (diff) | |
download | servo-66e0d543cfbaecb08ade2e071d6575f9f72f4dbb.tar.gz servo-66e0d543cfbaecb08ade2e071d6575f9f72f4dbb.zip |
Refactor PlacementAmongFloats (#30068)
- Add explanatory comments.
- Rename some methods.
- Store the ceiling instead of relying on the first band, this allows
calling place() when current_bands is empty.
- Make current_bands_height() work when current_bands is empty.
- Add add_one_band() helper method.
- Make place() return a Rect. Follow-up patches will need to know the
size of the area shrunk by floats.
This will be useful for #30057 and #30050.
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/audionode.rs')
0 files changed, 0 insertions, 0 deletions