style: Remove (mostly) unused has_current_styles.

MozReview-Commit-ID: DV9HfvbUjBY
This commit is contained in:
Emilio Cobos Álvarez 2017-07-22 14:53:57 +02:00
parent 55d9151dd3
commit 9d21f9e6ce
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 2 additions and 21 deletions

View file

@ -376,7 +376,7 @@ pub trait DomTraversal<E: TElement> : Sync {
) -> bool {
// See the comment on `cascade_node` for why we allow this on Gecko.
debug_assert!(cfg!(feature = "gecko") ||
parent.has_current_styles(parent_data));
parent.has_current_styles_for_traversal(parent_data, context.shared.traversal_flags));
// If the parent computed display:none, we don't style the subtree.
if parent_data.styles.is_display_none() {