diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2016-06-02 15:27:08 -0400 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2016-06-02 15:27:08 -0400 |
commit | 05fc799f923813bf0b63d50218f916684a499b87 (patch) | |
tree | b7d036eebc3e13d18606df9105a19cb49d92b798 /components/script/dom/document.rs | |
parent | bdecfa13d2114281472d5df4548a8faaf8a5bd87 (diff) | |
download | servo-05fc799f923813bf0b63d50218f916684a499b87.tar.gz servo-05fc799f923813bf0b63d50218f916684a499b87.zip |
Clean up DOMManipulationTaskSource
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 7729fe5a29a..56f8e98399f 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1471,10 +1471,8 @@ impl Document { update_with_current_time_ms(&self.dom_content_loaded_event_start); - let doctarget = Trusted::new(self.upcast::<EventTarget>()); - let task_source = self.window().dom_manipulation_task_source(); - let _ = task_source.queue(DOMManipulationTask::FireEvent( - atom!("DOMContentLoaded"), doctarget, EventBubbles::Bubbles, EventCancelable::NotCancelable)); + self.window().dom_manipulation_task_source().queue_event(self.upcast(), atom!("DOMContentLoaded"), + EventBubbles::Bubbles, EventCancelable::NotCancelable); self.window().reflow(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery, ReflowReason::DOMContentLoaded); |