mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use DOMString more consistently.
This commit is contained in:
parent
a0a61fe976
commit
0f5c9a35b9
76 changed files with 161 additions and 146 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::HTMLSpanElementBinding;
|
||||
use dom::bindings::utils::DOMString;
|
||||
use dom::document::AbstractDocument;
|
||||
use dom::element::HTMLSpanElementTypeId;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
|
@ -13,13 +14,13 @@ pub struct HTMLSpanElement {
|
|||
}
|
||||
|
||||
impl HTMLSpanElement {
|
||||
pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLSpanElement {
|
||||
pub fn new_inherited(localName: DOMString, document: AbstractDocument) -> HTMLSpanElement {
|
||||
HTMLSpanElement {
|
||||
htmlelement: HTMLElement::new_inherited(HTMLSpanElementTypeId, localName, document)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
|
||||
pub fn new(localName: DOMString, document: AbstractDocument) -> AbstractNode {
|
||||
let element = HTMLSpanElement::new_inherited(localName, document);
|
||||
Node::reflect_node(@mut element, document, HTMLSpanElementBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue