servo/components
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
..
allocator
atoms
background_hang_monitor fix(bhm): deliver exit signal reliably (for real) 2021-06-21 00:07:26 +09:00
bluetooth feat: shorten thread names 2021-07-19 00:57:48 +09:00
bluetooth_traits Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
canvas Bump surfman to 0.6 2023-02-24 19:00:57 +11:00
canvas_traits Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
compositing Fix flakiness in hit testing 2023-04-26 13:34:58 +02:00
config Clean up debug options 2023-05-01 14:09:28 +02:00
config_plugins Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
constellation Auto merge of #29692 - atbrakhi:move_loggers_from_constellation, r=mrobinson 2023-05-03 16:06:22 +02:00
deny_public_fields
derive_common Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
devtools Upgrade Hyper 2022-01-16 09:34:17 -08:00
devtools_traits Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
dom_struct Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
domobject_derive revert: Introduce Untransplantable trait to indicate transplantability at the type level 2023-03-23 18:06:17 +08:00
embedder_traits Move hit testing information out of WebRender 2023-03-15 12:25:29 +01:00
fallible Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
geometry Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
gfx Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
gfx_traits
hashglobe Fix some build warnings 2023-03-27 14:58:44 +02:00
jstraceable_derive
layout Detect body elements during layout 2023-05-04 10:46:27 +02:00
layout_2020 Auto merge of #29699 - mrobinson:add-html-body-tag, r=mukilan 2023-05-04 11:35:25 +02:00
layout_thread Detect body elements during layout 2023-05-04 10:46:27 +02:00
layout_thread_2020 Detect body elements during layout 2023-05-04 10:46:27 +02:00
layout_traits Clean up arguments passed to and stored in LayoutThread 2023-05-01 14:10:05 +02:00
malloc_size_of Switch to the sha2 crate for SRI digests. 2023-02-24 18:38:06 -08:00
media Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
metrics
msg Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
net Fix concept-header-list-get-decode-split 2023-03-26 20:07:12 +09:00
net_traits Fix return value of concept-header-list-get to Option<Vec<u8>> 2023-03-26 19:57:39 +09:00
pixels Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
profile feat: shorten thread names 2021-07-19 00:57:48 +09:00
profile_traits Clean up debug options 2023-05-01 14:09:28 +02:00
rand Removed the commented code. 2022-12-01 18:27:59 +04:00
range
remutex
script Auto merge of #29693 - mrobinson:cleanup-options, r=mukilan 2023-05-03 10:44:48 +02:00
script_layout_interface Detect body elements during layout 2023-05-04 10:46:27 +02:00
script_plugins Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
script_traits Clean up arguments passed to ScriptThread 2023-05-01 14:10:32 +02:00
selectors Auto merge of #29364 - delan:selectors-servo_arc, r=jdm 2023-02-20 16:53:35 +01:00
servo Auto merge of #29693 - mrobinson:cleanup-options, r=mukilan 2023-05-03 10:44:48 +02:00
servo_arc Auto merge of #29364 - delan:selectors-servo_arc, r=jdm 2023-02-20 16:53:35 +01:00
size_of_test Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
std_test_override Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
style Implement outline-offset in layout-2020 2023-05-02 17:59:48 +02:00
style_derive Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
style_traits Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
to_shmem Auto merge of #29364 - delan:selectors-servo_arc, r=jdm 2023-02-20 16:53:35 +01:00
to_shmem_derive Auto merge of #29364 - delan:selectors-servo_arc, r=jdm 2023-02-20 16:53:35 +01:00
url Fix some build warnings 2023-01-11 12:50:36 +01:00
webdriver_server Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
webgpu Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
webrender_surfman Bump surfman to 0.6 2023-02-24 19:00:57 +11:00
webrender_traits Bump euclid to 0.22 2023-01-26 08:59:21 +01:00