diff options
Diffstat (limited to 'components/script/dom/dommatrix.rs')
-rw-r--r-- | components/script/dom/dommatrix.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/components/script/dom/dommatrix.rs b/components/script/dom/dommatrix.rs index 2cbc9aa011c..54948489d11 100644 --- a/components/script/dom/dommatrix.rs +++ b/components/script/dom/dommatrix.rs @@ -32,7 +32,12 @@ impl DOMMatrix { } #[allow(unrooted_must_root)] - fn new_with_proto(global: &GlobalScope, proto: Option<HandleObject>, is2D: bool, matrix: Transform3D<f64>) -> DomRoot<Self> { + fn new_with_proto( + global: &GlobalScope, + proto: Option<HandleObject>, + is2D: bool, + matrix: Transform3D<f64>, + ) -> DomRoot<Self> { let dommatrix = Self::new_inherited(is2D, matrix); reflect_dom_object2(Box::new(dommatrix), global, proto) } @@ -50,7 +55,12 @@ impl DOMMatrix { init: Option<StringOrUnrestrictedDoubleSequence>, ) -> Fallible<DomRoot<Self>> { if init.is_none() { - return Ok(Self::new_with_proto(global, proto, true, Transform3D::identity())); + return Ok(Self::new_with_proto( + global, + proto, + true, + Transform3D::identity(), + )); } match init.unwrap() { StringOrUnrestrictedDoubleSequence::String(ref s) => { |