mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
script: Address review comments
This commit is contained in:
parent
9e34e82aec
commit
05bf2ffd02
3 changed files with 7 additions and 5 deletions
|
@ -100,6 +100,10 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLBodyElement> {
|
|||
s.bind_to_tree(tree_in_doc);
|
||||
}
|
||||
|
||||
if !tree_in_doc {
|
||||
return
|
||||
}
|
||||
|
||||
let window = window_from_node(*self).root();
|
||||
let document = window.r().Document().root();
|
||||
document.r().set_reflow_timeout(time::precise_time_ns() + INITIAL_REFLOW_DELAY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue