mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Use DOMString instead of ~str in a few places.
This commit is contained in:
parent
68f534c45a
commit
ecc07e3b49
4 changed files with 18 additions and 16 deletions
|
@ -16,9 +16,9 @@ pub struct DocumentType {
|
|||
}
|
||||
|
||||
impl DocumentType {
|
||||
pub fn new_inherited(name: ~str,
|
||||
public_id: Option<~str>,
|
||||
system_id: Option<~str>,
|
||||
pub fn new_inherited(name: DOMString,
|
||||
public_id: Option<DOMString>,
|
||||
system_id: Option<DOMString>,
|
||||
document: AbstractDocument)
|
||||
-> DocumentType {
|
||||
DocumentType {
|
||||
|
@ -29,9 +29,9 @@ impl DocumentType {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(name: ~str,
|
||||
public_id: Option<~str>,
|
||||
system_id: Option<~str>,
|
||||
pub fn new(name: DOMString,
|
||||
public_id: Option<DOMString>,
|
||||
system_id: Option<DOMString>,
|
||||
document: AbstractDocument)
|
||||
-> AbstractNode {
|
||||
let documenttype = DocumentType::new_inherited(name,
|
||||
|
|
|
@ -31,7 +31,7 @@ use std::unstable::raw::Box;
|
|||
|
||||
pub struct Element {
|
||||
node: Node,
|
||||
tag_name: ~str, // TODO: This should be an atom, not a ~str.
|
||||
tag_name: DOMString, // TODO: This should be an atom, not a DOMString.
|
||||
namespace: Namespace,
|
||||
attrs: ~[@mut Attr],
|
||||
style_attribute: Option<style::PropertyDeclarationBlock>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue