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

This commit is contained in:
Cameron McCormack 2017-03-30 17:31:40 +08:00 committed by GitHub
parent 2084ee29c4
commit df3cbb8104

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.
if let Some(parent) = element.parent_element() {
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;
}
}