mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
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:
parent
9636ef7be7
commit
bec81dc9c2
1 changed files with 4 additions and 3 deletions
|
@ -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>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue