mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40: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
|
@ -15,13 +15,13 @@ pub struct Text {
|
|||
}
|
||||
|
||||
impl Text {
|
||||
pub fn new_inherited(text: ~str, document: AbstractDocument) -> Text {
|
||||
pub fn new_inherited(text: DOMString, document: AbstractDocument) -> Text {
|
||||
Text {
|
||||
element: CharacterData::new_inherited(TextNodeTypeId, text, document)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(text: ~str, document: AbstractDocument) -> AbstractNode {
|
||||
pub fn new(text: DOMString, document: AbstractDocument) -> AbstractNode {
|
||||
let node = Text::new_inherited(text, document);
|
||||
Node::reflect_node(@mut node, document, TextBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue