diff options
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/block.rs | 2 | ||||
-rw-r--r-- | components/layout/flow.rs | 13 | ||||
-rw-r--r-- | components/layout/fragment.rs | 8 |
3 files changed, 13 insertions, 10 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index f615c5aa469..1f01327a160 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -2191,7 +2191,7 @@ impl Flow for BlockFlow { } fn print_extra_flow_children(&self, print_tree: &mut PrintTree) { - print_tree.add_item(format!("↑↑ Fragment for block: {:?}", self.fragment)); + print_tree.add_item(format!("↑↑ Fragment for block:{:?}", self.fragment)); } } diff --git a/components/layout/flow.rs b/components/layout/flow.rs index c706516933b..e4b19e20b0c 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -925,26 +925,29 @@ impl fmt::Debug for BaseFlow { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let child_count = self.parallel.children_count.load(Ordering::SeqCst); let child_count_string = if child_count > 0 { - format!(" children={}", child_count) + format!("\nchildren={}", child_count) } else { "".to_owned() }; let absolute_descendants_string = if self.abs_descendants.len() > 0 { - format!(" abs-descendents={}", self.abs_descendants.len()) + format!("\nabs-descendents={}", self.abs_descendants.len()) } else { "".to_owned() }; let damage_string = if self.restyle_damage != RestyleDamage::empty() { - format!(" damage={:?}", self.restyle_damage) + format!("\ndamage={:?}", self.restyle_damage) } else { "".to_owned() }; write!(f, - "sc={:?} pos={:?}, {}{} floatspec-in={:?}, floatspec-out={:?}, \ - overflow={:?}{}{}{}", + "\nsc={:?}\ + \npos={:?}{}{}\ + \nfloatspec-in={:?}\ + \nfloatspec-out={:?}\ + \noverflow={:?}{}{}{}", self.stacking_context_id, self.position, if self.flags.contains(FlowFlags::FLOATS_LEFT) { "FL" } else { "" }, diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index b2a627347da..0b78fb86475 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2958,24 +2958,24 @@ impl Fragment { impl fmt::Debug for Fragment { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let border_padding_string = if !self.border_padding.is_zero() { - format!(" border_padding={:?}", self.border_padding) + format!("\nborder_padding={:?}", self.border_padding) } else { "".to_owned() }; let margin_string = if !self.margin.is_zero() { - format!(" margin={:?}", self.margin) + format!("\nmargin={:?}", self.margin) } else { "".to_owned() }; let damage_string = if self.restyle_damage != RestyleDamage::empty() { - format!(" damage={:?}", self.restyle_damage) + format!("\ndamage={:?}", self.restyle_damage) } else { "".to_owned() }; - write!(f, "{}({}) [{:?}] border_box={:?}{}{}{}", + write!(f, "\n{}({}) [{:?}]\nborder_box={:?}{}{}{}", self.specific.get_type(), self.debug_id, self.specific, |