diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-03-27 18:17:56 +0000 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-11-21 15:36:35 +0100 |
commit | 78c1c53ccd21380a977e62102802de7f55ca57ac (patch) | |
tree | 94638dd0a3b923fbb6a27eb5546e513c1365f132 /components/style/sharing/mod.rs | |
parent | 398df68d38b20572769388ef39eb710fd41d6f4c (diff) | |
download | servo-78c1c53ccd21380a977e62102802de7f55ca57ac.tar.gz servo-78c1c53ccd21380a977e62102802de7f55ca57ac.zip |
style: Restyle pseudo-elements as well on part attribute changes
Refactor a bit the code to unify how we deal with this conditional
restyling (we had similar code for
MustCascadeChildrenIfInheritResetStyle).
Differential Revision: https://phabricator.services.mozilla.com/D172890
Diffstat (limited to 'components/style/sharing/mod.rs')
-rw-r--r-- | components/style/sharing/mod.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/components/style/sharing/mod.rs b/components/style/sharing/mod.rs index 28883d6d139..2caab7f7305 100644 --- a/components/style/sharing/mod.rs +++ b/components/style/sharing/mod.rs @@ -800,11 +800,6 @@ impl<E: TElement> StyleSharingCache<E> { return None; } - debug_assert!(target.has_current_styles_for_traversal( - &candidate.element.borrow_data().unwrap(), - shared.traversal_flags, - )); - debug!( "Sharing allowed between {:?} and {:?}", target.element, candidate.element |