mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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,10 +5,10 @@
|
|||
use dom::bindings::codegen::Bindings::DOMExceptionBinding;
|
||||
use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionConstants;
|
||||
use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionMethods;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::globalscope::GlobalScope;
|
||||
|
||||
#[repr(u16)]
|
||||
#[derive(JSTraceable, Copy, Clone, Debug, HeapSizeOf)]
|
||||
|
@ -52,7 +52,7 @@ impl DOMException {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: GlobalRef, code: DOMErrorName) -> Root<DOMException> {
|
||||
pub fn new(global: &GlobalScope, code: DOMErrorName) -> Root<DOMException> {
|
||||
reflect_dom_object(box DOMException::new_inherited(code),
|
||||
global,
|
||||
DOMExceptionBinding::Wrap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue