aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-12-03 15:05:22 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-12-03 15:05:22 +0530
commit63762d2b52ee6026216d304c8826bf8b4a5fdd20 (patch)
treeeba646a0bf1dbf0002b7674d704c100700019ec8 /components/script/dom/htmlelement.rs
parent765ce074a39f630de3357bc752177abb82833343 (diff)
parente42dcb3712bfc70241054aa0e25deebd675aaef9 (diff)
downloadservo-63762d2b52ee6026216d304c8826bf8b4a5fdd20.tar.gz
servo-63762d2b52ee6026216d304c8826bf8b4a5fdd20.zip
Auto merge of #8786 - eefriedman:localname-atom, r=jdm
Remove unnecessary conversion to/from DOMString for localName. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8786) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index c40b4477e5a..4b5fb69cf88 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -54,12 +54,12 @@ impl PartialEq for HTMLElement {
}
impl HTMLElement {
- pub fn new_inherited(tag_name: DOMString, prefix: Option<DOMString>,
+ pub fn new_inherited(tag_name: Atom, prefix: Option<DOMString>,
document: &Document) -> HTMLElement {
HTMLElement::new_inherited_with_state(ElementState::empty(), tag_name, prefix, document)
}
- pub fn new_inherited_with_state(state: ElementState, tag_name: DOMString,
+ pub fn new_inherited_with_state(state: ElementState, tag_name: Atom,
prefix: Option<DOMString>, document: &Document)
-> HTMLElement {
HTMLElement {
@@ -71,7 +71,7 @@ impl HTMLElement {
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, prefix: Option<DOMString>, document: &Document) -> Root<HTMLElement> {
+ pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLElement> {
let element = HTMLElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLElementBinding::Wrap)
}