aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domrect.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-18 15:44:30 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-18 15:44:30 +0530
commit7a87312121a69b590b364f9b5095f3145554e24b (patch)
treeb90d213147d74d97a79ba65a31394ddc78fec95f /components/script/dom/domrect.rs
parent247f586284ff3938430fd2be8de2ba2ac82eadc2 (diff)
parent0c61be7a577b99dc138eb6a2e46fb9276df0870d (diff)
downloadservo-7a87312121a69b590b364f9b5095f3145554e24b.tar.gz
servo-7a87312121a69b590b364f9b5095f3145554e24b.zip
Auto merge of #8569 - Ms2ger:fmt-script, r=metajack
Rustfmt some of script. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8569) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r--components/script/dom/domrect.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs
index aa4758d2b89..086e21882c6 100644
--- a/components/script/dom/domrect.rs
+++ b/components/script/dom/domrect.rs
@@ -24,11 +24,17 @@ impl DOMRect {
}
pub fn new(global: GlobalRef, x: f64, y: f64, width: f64, height: f64) -> Root<DOMRect> {
- reflect_dom_object(box DOMRect::new_inherited(x, y, width, height), global, DOMRectBinding::Wrap)
+ reflect_dom_object(box DOMRect::new_inherited(x, y, width, height),
+ global,
+ DOMRectBinding::Wrap)
}
pub fn Constructor(global: GlobalRef,
- x: f64, y: f64, width: f64, height: f64) -> Fallible<Root<DOMRect>> {
+ x: f64,
+ y: f64,
+ width: f64,
+ height: f64)
+ -> Fallible<Root<DOMRect>> {
Ok(DOMRect::new(global, x, y, width, height))
}
}