mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Reflow 200 milliseconds after the <body>
is parsed, like Gecko
does.
This commit is contained in:
parent
8759d42559
commit
9e34e82aec
5 changed files with 65 additions and 7 deletions
|
@ -303,6 +303,11 @@ impl<'a> PrivateServoHTMLParserHelpers for JSRef<'a, ServoHTMLParser> {
|
|||
break;
|
||||
}
|
||||
|
||||
{
|
||||
let document = self.document.root();
|
||||
document.r().reflow_if_reflow_timer_expired();
|
||||
}
|
||||
|
||||
let mut pending_input = self.pending_input.borrow_mut();
|
||||
if !pending_input.is_empty() {
|
||||
let chunk = pending_input.remove(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue