aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-07-01 09:55:23 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-07-01 10:04:53 -0700
commit13072c7b0c35f661e5c66fbef1951625201e3fc8 (patch)
treee400e4926cfcb603be254ff7456320967ca4192a /components/script/dom/htmlcollection.rs
parentefa60d3a24529cc1b99822f2b1204b799bc78bb2 (diff)
downloadservo-13072c7b0c35f661e5c66fbef1951625201e3fc8.tar.gz
servo-13072c7b0c35f661e5c66fbef1951625201e3fc8.zip
Remove string_cache dependency from util.
Move `namespace::from_domstring` from util to script::dom, because it is used only in that crate.
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r--components/script/dom/htmlcollection.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs
index af33302f036..b1efb20c264 100644
--- a/components/script/dom/htmlcollection.rs
+++ b/components/script/dom/htmlcollection.rs
@@ -8,11 +8,10 @@ use dom::bindings::codegen::InheritTypes::{ElementCast, NodeCast};
use dom::bindings::global::GlobalRef;
use dom::bindings::js::{JS, Root};
use dom::bindings::trace::JSTraceable;
-use dom::bindings::utils::{Reflector, reflect_dom_object};
+use dom::bindings::utils::{namespace_from_domstring, Reflector, reflect_dom_object};
use dom::element::{Element, AttributeHandlers, ElementHelpers};
use dom::node::{Node, NodeHelpers, TreeIterator};
use dom::window::Window;
-use util::namespace;
use util::str::{DOMString, split_html_space_chars};
use std::ascii::AsciiExt;
@@ -105,7 +104,7 @@ impl HTMLCollection {
maybe_ns: Option<DOMString>) -> Root<HTMLCollection> {
let namespace_filter = match maybe_ns {
Some(ref namespace) if namespace == &"*" => None,
- ns => Some(namespace::from_domstring(ns)),
+ ns => Some(namespace_from_domstring(ns)),
};
if tag == "*" {