From 3518472f7c5e4ad8eb61eb2b9263f151f8b6c797 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 6 Apr 2016 17:55:11 -0700 Subject: [PATCH] gfx: When dumping the display list, mention whether each layer scrolls its overflow area. --- components/gfx/display_list/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index 2a132cf7f61..16ac9a29ea7 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -725,8 +725,15 @@ impl fmt::Debug for StackingContext { "Pseudo-StackingContext" }; - write!(f, "{} at {:?} with overflow {:?}: {:?}", + let scrollable_string = if self.scrolls_overflow_area { + " (scrolls overflow area)" + } else { + "" + }; + + write!(f, "{}{} at {:?} with overflow {:?}: {:?}", type_string, + scrollable_string, self.bounds, self.overflow, self.id)