mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
commit
6a795f4795
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue