servo/components/layout_2020/display_list
bors-servo 4e37d07ea4
Auto merge of #29699 - mrobinson:add-html-body-tag, r=mukilan
Detect body elements during layout

During layout it is often useful, for various specification reasons, to know if an element is the `<body>` element of an `<html>` element root. There are a couple places where a brittle heuristic is used to detect `<body>` elements. This information is going to be even more important to properly handle `<html>` elements that inherit their overflow property from their `<body>` children.

Implementing this properly requires updating the DOM wrapper interface. This check does reach up to the parent of thread-safe nodes, but this is essentially the same kind of operation that `parent_style()` does, so is ostensibly safe.

This change should not change any behavior and is just a preparation step for properly handle `<body>` overflow.

<!-- 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
- [x] These changes do not require tests because it does not change behavior.

<!-- 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. -->
2023-05-04 11:35:25 +02:00
..
background.rs layout_2020: Implement support for backface-visibility 2020-05-16 09:42:45 +02:00
conversions.rs Add support for text-decoration-style 2020-03-23 11:10:44 +01:00
gradient.rs Some servo build fixes. 2020-04-16 18:29:30 +02:00
mod.rs Auto merge of #29699 - mrobinson:add-html-body-tag, r=mukilan 2023-05-04 11:35:25 +02:00
stacking_context.rs Detect body elements during layout 2023-05-04 10:46:27 +02:00