mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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::TouchEventBinding;
|
||||
use dom::bindings::codegen::Bindings::TouchEventBinding::TouchEventMethods;
|
||||
use dom::bindings::codegen::Bindings::UIEventBinding::UIEventMethods;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{JS, MutHeap, Root};
|
||||
use dom::bindings::reflector::reflect_dom_object;
|
||||
|
@ -49,7 +48,7 @@ impl TouchEvent {
|
|||
changed_touches: &TouchList,
|
||||
target_touches: &TouchList) -> Root<TouchEvent> {
|
||||
reflect_dom_object(box TouchEvent::new_inherited(touches, changed_touches, target_touches),
|
||||
GlobalRef::Window(window),
|
||||
window,
|
||||
TouchEventBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue