diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-24 17:28:24 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-24 17:52:17 +0100 |
commit | 0adfb080899104d4b51f6de3012ecf0558199b73 (patch) | |
tree | 60a23222f06c60f0f755158617d6256a23a1f5e2 /components/script/dom/htmlcollection.rs | |
parent | f7fb03518836ba45b0883aaaf3b8d38a6ff5eae1 (diff) | |
download | servo-0adfb080899104d4b51f6de3012ecf0558199b73.tar.gz servo-0adfb080899104d4b51f6de3012ecf0558199b73.zip |
Implement From<DOMString> for Atom
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r-- | components/script/dom/htmlcollection.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index b2c691fb762..d36fb177e7b 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -115,9 +115,9 @@ impl HTMLCollection { pub fn by_tag_name(window: &Window, root: &Node, mut tag: DOMString) -> Root<HTMLCollection> { - let tag_atom = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let tag_atom = Atom::from(&*tag); tag.make_ascii_lowercase(); - let ascii_lower_tag = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let ascii_lower_tag = Atom::from(tag); // FIXME(ajeffrey): don't clone atom if it was already lowercased. HTMLCollection::by_atomic_tag_name(window, root, tag_atom, ascii_lower_tag) } @@ -148,7 +148,7 @@ impl HTMLCollection { pub fn by_tag_name_ns(window: &Window, root: &Node, tag: DOMString, maybe_ns: Option<DOMString>) -> Root<HTMLCollection> { - let local = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let local = Atom::from(tag); let ns = namespace_from_domstring(maybe_ns); let qname = QualName::new(ns, local); HTMLCollection::by_qual_tag_name(window, root, qname) |