mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rustfmt some of script.
This commit is contained in:
parent
ceb72e54e4
commit
0c61be7a57
50 changed files with 1499 additions and 885 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue