diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-04-23 16:43:15 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-05-07 12:55:29 +0200 |
commit | e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5 (patch) | |
tree | 8e718b520398d9d86c164665d9705cb6a74ecb75 /components/style/invalidation/element/state_and_attributes.rs | |
parent | 50312e14576a9b8317372b44cb48a97e41464812 (diff) | |
download | servo-e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5.tar.gz servo-e5b5cd78a9cf09eb9c5e8c82f8004b1f4ed0fbf5.zip |
style: Remove support for XBL resources.
So much unsound code going away :-)
Differential Revision: https://phabricator.services.mozilla.com/D28380
Diffstat (limited to 'components/style/invalidation/element/state_and_attributes.rs')
-rw-r--r-- | components/style/invalidation/element/state_and_attributes.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/components/style/invalidation/element/state_and_attributes.rs b/components/style/invalidation/element/state_and_attributes.rs index e4555bb9a70..a49bb6306c5 100644 --- a/components/style/invalidation/element/state_and_attributes.rs +++ b/components/style/invalidation/element/state_and_attributes.rs @@ -224,8 +224,8 @@ where let mut shadow_rule_datas = SmallVec::<[_; 3]>::new(); let matches_document_author_rules = - element.each_applicable_non_document_style_rule_data(|data, quirks_mode, host| { - shadow_rule_datas.push((data, quirks_mode, host.map(|h| h.opaque()))) + element.each_applicable_non_document_style_rule_data(|data, host| { + shadow_rule_datas.push((data, host.opaque())) }); let invalidated_self = { @@ -258,12 +258,8 @@ where } } - for &(ref data, quirks_mode, ref host) in &shadow_rule_datas { - // FIXME(emilio): Replace with assert / remove when we figure - // out what to do with the quirks mode mismatches - // (that is, when bug 1406875 is properly fixed). - collector.matching_context.set_quirks_mode(quirks_mode); - collector.matching_context.current_host = host.clone(); + for &(ref data, ref host) in &shadow_rule_datas { + collector.matching_context.current_host = Some(host.clone()); collector.collect_dependencies_in_invalidation_map(data.invalidation_map()); } |