mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
style: Make a Servo-only assertion apply to Gecko too.
MozReview-Commit-ID: CWhSfDQ8naE
This commit is contained in:
parent
269077f317
commit
09c11d49d5
1 changed files with 4 additions and 2 deletions
|
@ -256,8 +256,10 @@ pub trait DomTraversal<E: TElement> : Sync {
|
|||
parent: E,
|
||||
parent_data: &ElementData,
|
||||
) -> bool {
|
||||
debug_assert!(cfg!(feature = "gecko") ||
|
||||
parent.has_current_styles_for_traversal(parent_data, context.shared.traversal_flags));
|
||||
debug_assert!(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