layout: Include float information in flows' debug output.

This commit is contained in:
Patrick Walton 2016-04-27 12:50:43 -07:00
parent 9e1935c2ed
commit 0198a9dda8

View file

@ -980,9 +980,11 @@ impl fmt::Debug for BaseFlow {
}; };
write!(f, write!(f,
"sc={:?} pos={:?}, floatspec-in={:?}, floatspec-out={:?}, overflow={:?}{}{}{}", "sc={:?} pos={:?}, {}{} floatspec-in={:?}, floatspec-out={:?}, overflow={:?}{}{}{}",
self.stacking_context_id, self.stacking_context_id,
self.position, self.position,
if self.flags.contains(FLOATS_LEFT) { "FL" } else { "" },
if self.flags.contains(FLOATS_RIGHT) { "FR" } else { "" },
self.speculated_float_placement_in, self.speculated_float_placement_in,
self.speculated_float_placement_out, self.speculated_float_placement_out,
self.overflow, self.overflow,