fixes dereferencing on an immutable reference (#31864)

This commit is contained in:
Aarya Khandelwal
2024-03-26 14:07:44 +05:30
committed by GitHub
parent 585e0d69cd
commit f7669b5238
32 changed files with 76 additions and 77 deletions

View File

@@ -3463,7 +3463,7 @@ impl ScriptThread {
/// Reflows non-incrementally, rebuilding the entire layout tree in the process.
fn rebuild_and_force_reflow(&self, document: &Document, reason: ReflowReason) {
let window = window_from_node(&*document);
let window = window_from_node(document);
document.dirty_all_nodes();
window.reflow(ReflowGoal::Full, reason);
}