mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stop using Gecko namespace ids in servo.
MozReview-Commit-ID: 2532dHCGPXW
This commit is contained in:
parent
628aa6a630
commit
9b5354f953
10 changed files with 157 additions and 88 deletions
|
@ -470,11 +470,11 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
|||
}
|
||||
|
||||
fn default_namespace(&self) -> Option<Namespace> {
|
||||
self.namespaces.default.clone().as_ref().map(|&(ref ns, _)| ns.clone())
|
||||
self.namespaces.default.as_ref().map(|ns| ns.clone())
|
||||
}
|
||||
|
||||
fn namespace_for_prefix(&self, prefix: &Atom) -> Option<Namespace> {
|
||||
self.namespaces.prefixes.get(prefix).map(|&(ref ns, _)| ns.clone())
|
||||
self.namespaces.prefixes.get(prefix).cloned()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue