diff options
Diffstat (limited to 'components/script/dom/domrectlist.rs')
-rw-r--r-- | components/script/dom/domrectlist.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/script/dom/domrectlist.rs b/components/script/dom/domrectlist.rs index cd5bc11b25e..b6411dbca86 100644 --- a/components/script/dom/domrectlist.rs +++ b/components/script/dom/domrectlist.rs @@ -18,7 +18,8 @@ pub struct DOMRectList { impl DOMRectList { fn new_inherited<T>(rects: T) -> DOMRectList - where T: Iterator<Item=Root<DOMRect>> { + where T: Iterator<Item = Root<DOMRect>> + { DOMRectList { reflector_: Reflector::new(), rects: rects.map(|r| JS::from_rooted(&r)).collect(), @@ -26,9 +27,11 @@ impl DOMRectList { } pub fn new<T>(window: &Window, rects: T) -> Root<DOMRectList> - where T: Iterator<Item=Root<DOMRect>> { + where T: Iterator<Item = Root<DOMRect>> + { reflect_dom_object(box DOMRectList::new_inherited(rects), - GlobalRef::Window(window), DOMRectListBinding::Wrap) + GlobalRef::Window(window), + DOMRectListBinding::Wrap) } } |