servo: Merge #16191 - geckolib: fix debug message about skipping traversal with an unstyled parent (from servo:debug-fix); r=Wafflespeanut

Source-Repo: https://github.com/servo/servo
Source-Revision: 6a795f4795f936789a3f34ad87a367e52cf1bf97

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d134f03fbc99a0c0b4c796da8cc15246c9613838
This commit is contained in:
Cameron McCormack 2017-03-30 04:34:25 -05:00
Родитель 3bac035994
Коммит 7515360521
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
}