diff options
author | Michael Booth <michaelboothj@gmail.com> | 2014-11-27 20:44:41 +0000 |
---|---|---|
committer | Michael Booth <michaelboothj@gmail.com> | 2014-11-30 19:47:52 +0000 |
commit | 2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1 (patch) | |
tree | 0bd3db5aa9c9e3b91715c3d067721960d342ef77 /components/script/script_task.rs | |
parent | 9cea3ce2661e68bae5400164b72930e4c5eeae55 (diff) | |
download | servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.tar.gz servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.zip |
Updated reflect_dom_object to be passed by value
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 4ab55968237..31918de0be7 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -838,7 +838,7 @@ impl ScriptTask { } // https://html.spec.whatwg.org/multipage/#the-end step 4 - let event = Event::new(&global::Window(*window), "DOMContentLoaded".to_string(), + let event = Event::new(global::Window(*window), "DOMContentLoaded".to_string(), DoesNotBubble, NotCancelable).root(); let doctarget: JSRef<EventTarget> = EventTargetCast::from_ref(*document); let _ = doctarget.DispatchEvent(*event); @@ -850,7 +850,7 @@ impl ScriptTask { // https://html.spec.whatwg.org/multipage/#the-end step 7 document.set_ready_state(DocumentReadyStateValues::Complete); - let event = Event::new(&global::Window(*window), "load".to_string(), DoesNotBubble, NotCancelable).root(); + let event = Event::new(global::Window(*window), "load".to_string(), DoesNotBubble, NotCancelable).root(); let wintarget: JSRef<EventTarget> = EventTargetCast::from_ref(*window); let _ = wintarget.dispatch_event_with_target(Some(doctarget), *event); @@ -1081,7 +1081,7 @@ impl ScriptTask { doc.begin_focus_transaction(); let event = - Event::new(&global::Window(*window), + Event::new(global::Window(*window), "click".to_string(), Bubbles, Cancelable).root(); let eventtarget: JSRef<EventTarget> = EventTargetCast::from_ref(node); |