mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Pass &JS<Window> to reflect_dom_object.
This commit is contained in:
parent
6291aac170
commit
23b7277b54
23 changed files with 26 additions and 26 deletions
|
@ -36,7 +36,7 @@ impl ClientRect {
|
|||
top: Au, bottom: Au,
|
||||
left: Au, right: Au) -> JS<ClientRect> {
|
||||
let rect = ClientRect::new_inherited(window.clone(), top, bottom, left, right);
|
||||
reflect_dom_object(~rect, window.get(), ClientRectBinding::Wrap)
|
||||
reflect_dom_object(~rect, window, ClientRectBinding::Wrap)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue