style: Clean up after #17427.

This commit is contained in:
Emilio Cobos Álvarez 2017-06-20 15:42:23 +02:00
parent 84a8bbc8a6
commit ce9cd802de
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 3 deletions

View file

@ -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,
}