mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Kill ServoParser::pipeline
This commit is contained in:
parent
90839305ae
commit
d8238646a0
5 changed files with 20 additions and 48 deletions
|
@ -530,11 +530,6 @@ impl Document {
|
|||
self.reflow_timeout.set(Some(timeout))
|
||||
}
|
||||
|
||||
/// Disables any pending reflow timeouts.
|
||||
pub fn disarm_reflow_timeout(&self) {
|
||||
self.reflow_timeout.set(None)
|
||||
}
|
||||
|
||||
/// Remove any existing association between the provided id and any elements in this document.
|
||||
pub fn unregister_named_element(&self, to_unregister: &Element, id: Atom) {
|
||||
debug!("Removing named element from document {:p}: {:p} id={}",
|
||||
|
@ -1556,6 +1551,15 @@ impl Document {
|
|||
self.process_deferred_scripts();
|
||||
},
|
||||
LoadType::PageSource(_) => {
|
||||
if self.browsing_context.is_some() {
|
||||
// Disarm the reflow timer and trigger the initial reflow.
|
||||
self.reflow_timeout.set(None);
|
||||
self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
||||
self.window.reflow(ReflowGoal::ForDisplay,
|
||||
ReflowQueryType::NoQuery,
|
||||
ReflowReason::FirstLoad);
|
||||
}
|
||||
|
||||
// Deferred scripts have to wait for page to finish loading,
|
||||
// this is the first opportunity to process them.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue