mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Clean up after #17427.
This commit is contained in:
parent
84a8bbc8a6
commit
ce9cd802de
2 changed files with 4 additions and 3 deletions
|
@ -1747,8 +1747,8 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
// If this element is the shadow root of an use-element shadow
|
||||
// tree, according to the spec, we should not match rules
|
||||
// cross the shadow DOM boundary.
|
||||
e.get_local_name().as_ptr() == atom!("use").as_ptr() &&
|
||||
e.get_namespace() == &*Namespace(atom!("http://www.w3.org/2000/svg"))
|
||||
e.get_local_name() == &*local_name!("use") &&
|
||||
e.get_namespace() == &*ns!("http://www.w3.org/2000/svg")
|
||||
},
|
||||
None => false,
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@ use string_cache::{Atom, WeakAtom};
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! ns {
|
||||
() => { $crate::string_cache::Namespace(atom!("")) }
|
||||
() => { $crate::string_cache::Namespace(atom!("")) };
|
||||
($s: tt) => { $crate::string_cache::Namespace(atom!($s)) };
|
||||
}
|
||||
|
||||
/// A Gecko namespace is just a wrapped atom.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue