mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -9,7 +9,6 @@ use dom::bindings::codegen::Bindings::HTMLOptionsCollectionBinding::HTMLOptionsC
|
|||
use dom::bindings::codegen::Bindings::NodeBinding::NodeBinding::NodeMethods;
|
||||
use dom::bindings::codegen::UnionTypes::{HTMLOptionElementOrHTMLOptGroupElement, HTMLElementOrLong};
|
||||
use dom::bindings::error::{Error, ErrorResult};
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{Root, RootedReference};
|
||||
use dom::bindings::reflector::reflect_dom_object;
|
||||
|
@ -36,7 +35,7 @@ impl HTMLOptionsCollection {
|
|||
-> Root<HTMLOptionsCollection>
|
||||
{
|
||||
reflect_dom_object(box HTMLOptionsCollection::new_inherited(root, filter),
|
||||
GlobalRef::Window(window),
|
||||
window,
|
||||
HTMLOptionsCollectionBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue