diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-03-13 19:15:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 19:15:08 -0400 |
commit | d43e191449e57dea83346f0f75b462cad35d59e5 (patch) | |
tree | 7dd453446853b88303e8229e515d639c8be26c8b /components/script/dom/validation.rs | |
parent | 5737db81f99c2a4f277a3c9d8ebd1f1ffb6f4402 (diff) | |
parent | c3b1c92ac1d3d4b79e4941deccc7bd0d04a4bb91 (diff) | |
download | servo-d43e191449e57dea83346f0f75b462cad35d59e5.tar.gz servo-d43e191449e57dea83346f0f75b462cad35d59e5.zip |
Auto merge of #25945 - mrobinson:track-hoisted, r=nox
layout_2020: Paint hoisted positioned fragments in tree order
Instead of painting hoisted position fragments in the order to which
they are hoisted, paint them in tree order and properly incorporate them
into the stacking context.
We do this by creating a placeholder fragment in the original tree position
of hoisted fragments. The ghost fragment contains an atomic id which
links back to the hoisted fragment in the containing block.
While building the stacking context, we keep track of containing blocks
and their children. When encountering a placeholder fragment we look at
the containing block's hoisted children in order to properly paint the
hoisted fragment.
One notable design modification in this change is that hoisted fragments
no longer need an AnonymousFragment as their parent. Instead they are
now direct children of the fragment that establishes their containing block.
<!-- Please describe your changes on the following line: -->
---
<!-- 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: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- 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/script/dom/validation.rs')
0 files changed, 0 insertions, 0 deletions