aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/text.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2023-05-28 23:25:41 -0400
committerJosh Matthews <josh@joshmatthews.net>2023-05-28 23:54:02 -0400
commit0e8ac3fdac83227d4bbc8d1d74ea021fa627280a (patch)
treeb26c252a84a3e5e67158ef65385979fdb1174784 /components/script/dom/text.rs
parentdbff26bce05d404027ef5bbfd85fb5995e4726bc (diff)
downloadservo-0e8ac3fdac83227d4bbc8d1d74ea021fa627280a.tar.gz
servo-0e8ac3fdac83227d4bbc8d1d74ea021fa627280a.zip
Formatting.
Diffstat (limited to 'components/script/dom/text.rs')
-rw-r--r--components/script/dom/text.rs18
1 files changed, 15 insertions, 3 deletions
diff --git a/components/script/dom/text.rs b/components/script/dom/text.rs
index 137b347bba9..bc436517cd2 100644
--- a/components/script/dom/text.rs
+++ b/components/script/dom/text.rs
@@ -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))
}