From 0198a9dda84cf3e07603982489a1d55c415f9da9 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 27 Apr 2016 12:50:43 -0700 Subject: [PATCH] layout: Include float information in flows' debug output. --- components/layout/flow.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/layout/flow.rs b/components/layout/flow.rs index a77f636415b..05e5814d0e0 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -980,9 +980,11 @@ impl fmt::Debug for BaseFlow { }; write!(f, - "sc={:?} pos={:?}, floatspec-in={:?}, floatspec-out={:?}, overflow={:?}{}{}{}", + "sc={:?} pos={:?}, {}{} floatspec-in={:?}, floatspec-out={:?}, overflow={:?}{}{}{}", self.stacking_context_id, 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_out, self.overflow,