Be more precise in should_process_descendants.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-12 17:35:14 +02:00
parent 9e61c1962b
commit ecdb10ef5c
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -186,11 +186,8 @@ where
Some(ref data) => data, Some(ref data) => data,
}; };
// FIXME(emilio): should check only RESTYLE_DESCENDANTS. !data.styles.is_display_none() &&
// !data.hint.contains(RESTYLE_DESCENDANTS)
// Also, could probably return false if data.styles.is_display_none()
// returns true.
!data.hint.contains_subtree()
} }
fn recursion_limit_exceeded( fn recursion_limit_exceeded(