diff options
author | bors-servo <infra@servo.org> | 2023-06-03 05:48:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 05:48:13 +0200 |
commit | 0dd27d487fa6ddbfd517fbc7fa6c8253eaccbd04 (patch) | |
tree | 77e3831d463b7ec93a76370e4e3fb0b3c8ff0018 /components/layout_2020/flexbox/layout.rs | |
parent | 053a0aa4fd7360c8504a65ba177d7047077129b2 (diff) | |
parent | 7ead24a138ce3a1d9b46bc7471d2689010d69777 (diff) | |
download | servo-0dd27d487fa6ddbfd517fbc7fa6c8253eaccbd04.tar.gz servo-0dd27d487fa6ddbfd517fbc7fa6c8253eaccbd04.zip |
Auto merge of #29835 - mukilan:fix-double-borrow-in-hoisted, r=mrobinson
Clear PositioningContext for speculative layouts
<!-- Please describe your changes on the following line: -->
Developed in collaboration with @mrobinson
`try_layout` is used for laying out absolutely positioned descendants multiple times when min/max-{width, height} properties are set. When the same PositioningContext instance is used between successive attempts without clearing the accumulated descendants, we will generate multiple fragments which reference the same box, which then will lead to a double borrow error when layout is performed in parallel.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because crash testing is currently not working in servo. New tests will be added once #29832 is fixed.
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/layout_2020/flexbox/layout.rs')
0 files changed, 0 insertions, 0 deletions