diff options
author | Christian Poveda <z1mvader@protonmail.com> | 2017-05-03 10:17:42 -0500 |
---|---|---|
committer | Christian Poveda <z1mvader@protonmail.com> | 2017-05-03 10:17:42 -0500 |
commit | 875e422fe67f68bdf57bd3635279e224b0c90996 (patch) | |
tree | 46c94c28351d20bd9c92a1c2bd569d6b983ddcf2 /components/script/dom/htmlhrelement.rs | |
parent | 225b505d222e0437a4ac0d6d0f5e5221de9c22e6 (diff) | |
download | servo-875e422fe67f68bdf57bd3635279e224b0c90996.tar.gz servo-875e422fe67f68bdf57bd3635279e224b0c90996.zip |
Changed all prefixes from DOMString to the atomic Prefix from html5ever
Diffstat (limited to 'components/script/dom/htmlhrelement.rs')
-rw-r--r-- | components/script/dom/htmlhrelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs index f1d5774dbe9..cb1b90f4e17 100644 --- a/components/script/dom/htmlhrelement.rs +++ b/components/script/dom/htmlhrelement.rs @@ -13,7 +13,7 @@ use dom::htmlelement::HTMLElement; use dom::node::Node; use dom::virtualmethods::VirtualMethods; use dom_struct::dom_struct; -use html5ever_atoms::LocalName; +use html5ever_atoms::{LocalName, Prefix}; use style::attr::{AttrValue, LengthOrPercentageOrAuto}; #[dom_struct] @@ -22,7 +22,7 @@ pub struct HTMLHRElement { } impl HTMLHRElement { - fn new_inherited(local_name: LocalName, prefix: Option<DOMString>, document: &Document) -> HTMLHRElement { + fn new_inherited(local_name: LocalName, prefix: Option<Prefix>, document: &Document) -> HTMLHRElement { HTMLHRElement { htmlelement: HTMLElement::new_inherited(local_name, prefix, document) } @@ -30,7 +30,7 @@ impl HTMLHRElement { #[allow(unrooted_must_root)] pub fn new(local_name: LocalName, - prefix: Option<DOMString>, + prefix: Option<Prefix>, document: &Document) -> Root<HTMLHRElement> { Node::reflect_node(box HTMLHRElement::new_inherited(local_name, prefix, document), document, |