mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Remove (mostly) unused has_current_styles.
MozReview-Commit-ID: DV9HfvbUjBY
This commit is contained in:
parent
55d9151dd3
commit
9d21f9e6ce
3 changed files with 2 additions and 21 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue