mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
config: Remove legacy-layout and unused Preferences
and Opts
(#34994)
There are some preferences and options that are only used by legacy layout or not used at all. This PR removes them. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
2c0c36f238
commit
f5ef8aaed3
8 changed files with 12 additions and 305 deletions
|
@ -13,16 +13,13 @@ use std::{mem, ptr};
|
|||
|
||||
use profile_traits::time::{self, TimerMetadata};
|
||||
use profile_traits::time_profile;
|
||||
use servo_config::opts;
|
||||
use smallvec::SmallVec;
|
||||
|
||||
use crate::block::BlockFlow;
|
||||
use crate::context::LayoutContext;
|
||||
use crate::flow::{Flow, GetBaseFlow};
|
||||
use crate::flow_ref::FlowRef;
|
||||
use crate::traversal::{
|
||||
AssignBSizes, AssignISizes, BubbleISizes, PostorderFlowTraversal, PreorderFlowTraversal,
|
||||
};
|
||||
use crate::traversal::{AssignBSizes, AssignISizes, PostorderFlowTraversal, PreorderFlowTraversal};
|
||||
|
||||
/// Traversal chunk size.
|
||||
const CHUNK_SIZE: usize = 16;
|
||||
|
@ -213,13 +210,6 @@ pub fn reflow(
|
|||
context: &LayoutContext,
|
||||
queue: &rayon::ThreadPool,
|
||||
) {
|
||||
if opts::get().debug.bubble_inline_sizes_separately {
|
||||
let bubble_inline_sizes = BubbleISizes {
|
||||
layout_context: context,
|
||||
};
|
||||
bubble_inline_sizes.traverse(root);
|
||||
}
|
||||
|
||||
let assign_isize_traversal = &AssignISizes {
|
||||
layout_context: context,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue