mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Make reflect_dom_object take a &GlobalScope
This commit is contained in:
parent
093b189b48
commit
fcb59d3057
132 changed files with 488 additions and 407 deletions
|
@ -5,7 +5,6 @@
|
|||
use dom::bindings::codegen::Bindings::LocationBinding;
|
||||
use dom::bindings::codegen::Bindings::LocationBinding::LocationMethods;
|
||||
use dom::bindings::error::{Error, ErrorResult};
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{JS, Root};
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::str::{DOMString, USVString};
|
||||
|
@ -29,7 +28,7 @@ impl Location {
|
|||
|
||||
pub fn new(window: &Window) -> Root<Location> {
|
||||
reflect_dom_object(box Location::new_inherited(window),
|
||||
GlobalRef::Window(window),
|
||||
window,
|
||||
LocationBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue