Auto merge of #16191 - servo:debug-fix, r=Wafflespeanut

geckolib: fix debug message about skipping traversal with an unstyled parent

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16191)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-03-30 04:34:25 -05:00 committed by GitHub
commit 6a795f4795

View file

@ -153,7 +153,7 @@ fn traverse_subtree(element: GeckoElement, raw_data: RawServoStyleSetBorrowed,
// servo to try to style it. Detect that here and bail out. // servo to try to style it. Detect that here and bail out.
if let Some(parent) = element.parent_element() { if let Some(parent) = element.parent_element() {
if parent.borrow_data().map_or(true, |d| d.styles().is_display_none()) { if parent.borrow_data().map_or(true, |d| d.styles().is_display_none()) {
debug!("{:?} has unstyled parent - ignoring call to traverse_subtree", parent); debug!("{:?} has unstyled parent {:?} - ignoring call to traverse_subtree", element, parent);
return; return;
} }
} }