style: Fix :-moz-svg-use-shadow-tree-root pseudo-class.

Turns out removing the pseudo-class and such ends up not being quite as trivial
as I initially thought, or possible at all, since the fact that the <symbol> is
a <symbol> is observable via selectors, added a test for that.

Differential Revision: https://phabricator.services.mozilla.com/D29131
This commit is contained in:
Emilio Cobos Álvarez 2019-04-29 08:04:22 +00:00
parent 9636ef7be7
commit bec81dc9c2

View file

@ -865,10 +865,11 @@ impl<'le> GeckoElement<'le> {
if !self.as_node().is_in_shadow_tree() { if !self.as_node().is_in_shadow_tree() {
return false; return false;
} }
match self.containing_shadow_host() { if !self.parent_node_is_shadow_root() {
Some(e) => e.is_svg_element() && e.local_name() == &*local_name!("use"), return false;
None => false,
} }
let host = self.containing_shadow_host().unwrap();
host.is_svg_element() && host.local_name() == &*local_name!("use")
} }
fn css_transitions_info(&self) -> FxHashMap<LonghandId, Arc<AnimationValue>> { fn css_transitions_info(&self) -> FxHashMap<LonghandId, Arc<AnimationValue>> {