mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Be more precise in should_process_descendants.
This commit is contained in:
parent
9e61c1962b
commit
ecdb10ef5c
1 changed files with 2 additions and 5 deletions
|
@ -186,11 +186,8 @@ where
|
|||
Some(ref data) => data,
|
||||
};
|
||||
|
||||
// FIXME(emilio): should check only RESTYLE_DESCENDANTS.
|
||||
//
|
||||
// Also, could probably return false if data.styles.is_display_none()
|
||||
// returns true.
|
||||
!data.hint.contains_subtree()
|
||||
!data.styles.is_display_none() &&
|
||||
!data.hint.contains(RESTYLE_DESCENDANTS)
|
||||
}
|
||||
|
||||
fn recursion_limit_exceeded(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue