aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authortigercosmos <phy.tiger@gmail.com>2017-12-22 16:21:32 +0800
committertigercosmos <phy.tiger@gmail.com>2017-12-23 14:40:06 +0800
commit43c94d34457965ae221947a2986a265c428dfff2 (patch)
treeebf00105d2a05485d510e36fdcf11890a8a17856 /components/layout/fragment.rs
parentdfd8e85338fb5460d800577d5761e979644dc869 (diff)
downloadservo-43c94d34457965ae221947a2986a265c428dfff2.tar.gz
servo-43c94d34457965ae221947a2986a265c428dfff2.zip
pretty print tree
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs8
1 files changed, 4 insertions, 4 deletions
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,