mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
auto merge of #4444 : Ms2ger/servo/load-simplify, r=jdm
This commit is contained in:
commit
b9edc2243a
1 changed files with 2 additions and 5 deletions
|
@ -828,11 +828,8 @@ impl ScriptTask {
|
||||||
|
|
||||||
// Kick off the initial reflow of the page.
|
// Kick off the initial reflow of the page.
|
||||||
debug!("kicking off initial reflow of {}", final_url);
|
debug!("kicking off initial reflow of {}", final_url);
|
||||||
{
|
document.content_changed(NodeCast::from_ref(*document),
|
||||||
let document_js_ref = (&*document).clone();
|
NodeDamage::OtherNodeDamage);
|
||||||
let document_as_node = NodeCast::from_ref(document_js_ref);
|
|
||||||
document.content_changed(document_as_node, NodeDamage::OtherNodeDamage);
|
|
||||||
}
|
|
||||||
window.flush_layout(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery);
|
window.flush_layout(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue