mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Trigger a reflow when nodes are appended and removed from the document. Fixes #907.
This commit is contained in:
parent
2372a84149
commit
4ec428b9d6
3 changed files with 50 additions and 5 deletions
|
@ -611,11 +611,6 @@ impl ScriptTask {
|
|||
|
||||
let document = HTMLDocument::new(root, Some(window));
|
||||
|
||||
// Tie the root into the document.
|
||||
do root.with_mut_base |base| {
|
||||
base.add_to_doc(document)
|
||||
}
|
||||
|
||||
// Create the root frame.
|
||||
page.frame = Some(Frame {
|
||||
document: document,
|
||||
|
@ -623,6 +618,11 @@ impl ScriptTask {
|
|||
});
|
||||
page.url = Some((url.clone(), true));
|
||||
|
||||
// Tie the root into the document.
|
||||
do root.with_mut_base |base| {
|
||||
base.add_to_doc(document)
|
||||
}
|
||||
|
||||
// Send style sheets over to layout.
|
||||
//
|
||||
// FIXME: These should be streamed to layout as they're parsed. We don't need to stop here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue