servo: Merge #13596 - Get rid of dom::bindings::global (from nox:inline); r=Ms2ger

Globals in that PR are now represented by the fake IDL interface `GlobalScope`.

Source-Repo: https://github.com/servo/servo
Source-Revision: a6e4b5bb86ad707a0863acff87344ca4239cfd2c
This commit is contained in:
Anthony Ramine
2016-10-07 07:52:09 -05:00
parent ad20161a99
commit e5bfcb23c0
170 changed files with 1595 additions and 1742 deletions

View File

@@ -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)
}