mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Unify LoadComplete and DOMLoad messages.
See the PR in which this commit landed and also https://github.com/servo/servo/pull/6415#issuecomment-122294169
This commit is contained in:
parent
572b3c31bd
commit
36376461f4
3 changed files with 10 additions and 25 deletions
|
@ -1497,14 +1497,10 @@ impl Document {
|
|||
let window = self.window();
|
||||
window.dom_manipulation_task_source().queue_event(self.upcast(), atom!("DOMContentLoaded"),
|
||||
EventBubbles::Bubbles, EventCancelable::NotCancelable, window);
|
||||
|
||||
window.reflow(ReflowGoal::ForDisplay,
|
||||
ReflowQueryType::NoQuery,
|
||||
ReflowReason::DOMContentLoaded);
|
||||
|
||||
let pipeline_id = self.window.pipeline();
|
||||
let event = ConstellationMsg::DOMLoad(pipeline_id);
|
||||
self.window.constellation_chan().send(event).unwrap();
|
||||
|
||||
update_with_current_time_ms(&self.dom_content_loaded_event_end);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue