servo/components/layout
Martin Robinson 72302e2dae 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.
2023-05-04 10:46:27 +02:00
..
display_list Clean up debug options 2023-05-01 14:09:28 +02:00
tests Adjust size test for debug/release differences. 2021-02-26 04:20:23 -05:00
block.rs Actually check if root is absolute positioned 2022-04-19 17:43:43 +08:00
Cargo.toml Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
construct.rs Clean up debug options 2023-05-01 14:09:28 +02:00
context.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
data.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00
flex.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
floats.rs Update nightly rustc. 2021-11-01 08:46:18 -04:00
flow.rs Detect body elements during layout 2023-05-04 10:46:27 +02:00
flow_list.rs Some further removals 2019-05-30 20:27:19 +02:00
flow_ref.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
fragment.rs Detect body elements during layout 2023-05-04 10:46:27 +02:00
generated_content.rs Fix Servo build and unify display representation. 2019-08-15 17:11:08 +02:00
incremental.rs Remove LayoutDamageComputation 2019-01-14 16:10:26 +01:00
inline.rs layout: Don't built stacking contexts or display lists for empty blocks. 2020-06-09 11:27:23 -04:00
layout_debug.rs Fix deprecation warnings 2019-01-28 11:32:40 +01:00
lib.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
linked_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
list_item.rs Update euclid. 2019-07-23 23:09:55 +02:00
model.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
multicol.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
opaque_node.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
parallel.rs Clean up debug options 2023-05-01 14:09:28 +02:00
persistent_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
query.rs Detect body elements during layout 2023-05-04 10:46:27 +02:00
sequential.rs Clean up debug options 2023-05-01 14:09:28 +02:00
table.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_caption.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_cell.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_colgroup.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
table_row.rs style: Miscellaneous Servo build fixes. 2020-02-12 02:43:23 +01:00
table_rowgroup.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_wrapper.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
text.rs Revert "Revert "Update font-kit and freetype and unicode-script."" 2020-08-10 13:30:51 -04:00
traversal.rs Fix some typos 2022-12-17 03:22:34 +01:00
wrapper.rs Implement concept of dirty root 2020-05-19 16:26:36 +02:00