Use string-cache's Namespace type

This commit is contained in:
Keegan McAllister 2014-09-29 18:30:01 -07:00
parent 6429750b33
commit d50114c41d
27 changed files with 126 additions and 183 deletions

View file

@ -4,8 +4,9 @@
use cssparser::ast::*;
use std::collections::hashmap::HashMap;
use servo_util::namespace::Namespace;
use servo_util::namespace;
use errors::log_css_error;
use string_cache::Namespace;
pub struct NamespaceMap {
pub default: Option<Namespace>,
@ -40,7 +41,7 @@ pub fn parse_namespace_rule(rule: AtRule, namespaces: &mut NamespaceMap) {
},
URL(value) | QuotedString(value) => {
if ns.is_some() { syntax_error!() }
ns = Some(Namespace::from_str(Some(value)));
ns = Some(namespace::from_domstring(Some(value)));
break
},
_ => syntax_error!(),