gfx: When dumping the display list, mention whether each layer scrolls

its overflow area.
This commit is contained in:
Patrick Walton 2016-04-06 17:55:11 -07:00
parent 1e884ddc69
commit 3518472f7c

View file

@ -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)