diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-12-02 13:42:45 -0800 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-12-02 13:42:45 -0800 |
commit | e42dcb3712bfc70241054aa0e25deebd675aaef9 (patch) | |
tree | 61e6d564854f6fc095553fa4c166a4c24442b129 /components/script/dom/htmlparamelement.rs | |
parent | 2be60be062e14c937af601faed78a6aceccdb062 (diff) | |
download | servo-e42dcb3712bfc70241054aa0e25deebd675aaef9.tar.gz servo-e42dcb3712bfc70241054aa0e25deebd675aaef9.zip |
Remove unnecessary conversion to/from DOMString for localName.
Diffstat (limited to 'components/script/dom/htmlparamelement.rs')
-rw-r--r-- | components/script/dom/htmlparamelement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlparamelement.rs b/components/script/dom/htmlparamelement.rs index 4cf7f1b2672..6e9da2e787b 100644 --- a/components/script/dom/htmlparamelement.rs +++ b/components/script/dom/htmlparamelement.rs @@ -7,6 +7,7 @@ use dom::bindings::js::Root; use dom::document::Document; use dom::htmlelement::HTMLElement; use dom::node::Node; +use string_cache::Atom; use util::str::DOMString; #[dom_struct] @@ -15,7 +16,7 @@ pub struct HTMLParamElement { } impl HTMLParamElement { - fn new_inherited(localName: DOMString, + fn new_inherited(localName: Atom, prefix: Option<DOMString>, document: &Document) -> HTMLParamElement { HTMLParamElement { @@ -25,7 +26,7 @@ impl HTMLParamElement { } #[allow(unrooted_must_root)] - pub fn new(localName: DOMString, + pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLParamElement> { let element = HTMLParamElement::new_inherited(localName, prefix, document); |