mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Formatting.
This commit is contained in:
parent
dbff26bce0
commit
0e8ac3fdac
81 changed files with 588 additions and 206 deletions
|
@ -35,12 +35,24 @@ impl Text {
|
|||
Self::new_with_proto(text, document, None)
|
||||
}
|
||||
|
||||
fn new_with_proto(text: DOMString, document: &Document, proto: Option<HandleObject>) -> DomRoot<Text> {
|
||||
Node::reflect_node_with_proto(Box::new(Text::new_inherited(text, document)), document, proto)
|
||||
fn new_with_proto(
|
||||
text: DOMString,
|
||||
document: &Document,
|
||||
proto: Option<HandleObject>,
|
||||
) -> DomRoot<Text> {
|
||||
Node::reflect_node_with_proto(
|
||||
Box::new(Text::new_inherited(text, document)),
|
||||
document,
|
||||
proto,
|
||||
)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn Constructor(window: &Window, proto: Option<HandleObject>, text: DOMString) -> Fallible<DomRoot<Text>> {
|
||||
pub fn Constructor(
|
||||
window: &Window,
|
||||
proto: Option<HandleObject>,
|
||||
text: DOMString,
|
||||
) -> Fallible<DomRoot<Text>> {
|
||||
let document = window.Document();
|
||||
Ok(Text::new_with_proto(text, &document, proto))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue