Skip to content

Commit

Permalink
Remove an obsolete reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jan 17, 2017
1 parent a60bbc8 commit d297269
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/script/dom/document.rs
Expand Up @@ -1569,14 +1569,6 @@ impl Document {
*self.pending_parsing_blocking_script.borrow_mut() = None;
parser.resume_with_pending_parsing_blocking_script(&element, result);
}
} else if self.reflow_timeout.get().is_none() {
// If we don't have a parser, and the reflow timer has been reset, explicitly
// trigger a reflow.
if let LoadType::Stylesheet(_) = load {
self.window.reflow(ReflowGoal::ForDisplay,
ReflowQueryType::NoQuery,
ReflowReason::StylesheetLoaded);
}
}

if !self.loader.borrow().is_blocked() && !self.loader.borrow().events_inhibited() {
Expand Down

0 comments on commit d297269

Please sign in to comment.