Truly independent web browser
LibWeb: Lay out in-flow block children on the style and layout threads
Aliaksandr Kalenik0c019da232e1
diff --git a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rsindex 954c65ace8b..f264a7af66b 100644--- a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs@@ -4804,8 +4804,7 @@ impl<'pass> BlockFormattingContext<'pass> {) -> Option<ChildJobAhead> {let callbacks = &self.run.callbacks;let facts = self.facts(child);- if parallel_layout::forks_in_flow_children()- && facts.is_box()+ if facts.is_box()&& !facts.is_floating_or_absolutely_positioned()&& !facts.is_list_item_marker_box()&& self.in_flow_child_depends_only_on_its_key_and_floats(child, block_container.node, None)diff --git a/Libraries/LibWeb/Rust/src/layout/parallel_layout.rs b/Libraries/LibWeb/Rust/src/layout/parallel_layout.rsindex 5a3767ad69b..c3351dafb2e 100644--- a/Libraries/LibWeb/Rust/src/layout/parallel_layout.rs+++ b/Libraries/LibWeb/Rust/src/layout/parallel_layout.rs@@ -44,12 +44,6 @@ const BOXES_COUNTED_PER_JOB: usize = 16;const MINIMUM_BOXES_FORKED_FROM_A_STYLE_LAYOUT_THREAD: usize = 64;const MINIMUM_BOXES_FORKED_ONTO_STYLE_LAYOUT_THREADS: usize = 128;-/// Whether in-flow block children are laid out ahead of the walks over them, which only the verification of forks asks-/// for so far.-pub(crate) fn forks_in_flow_children() -> bool {- FORK_SETTINGS.forces_forks-}-pub(crate) fn fork_candidates<T: Copy>(pass: &LayoutPass<'_>,items: impl IntoIterator<Item = T>,