mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
ran ./mach fmt
- removed unused import in document_loader.rs - limit unsafe block in mark_document_with_no_blocked_loads in script_thread.rs - changed name of if let value to load in Drop for LoadBlocker in document_loader.rs
This commit is contained in:
parent
c713febe7a
commit
be82d7c905
2 changed files with 5 additions and 6 deletions
|
@ -809,13 +809,13 @@ impl ScriptThread {
|
|||
|
||||
pub fn mark_document_with_no_blocked_loads(doc: &Document) {
|
||||
SCRIPT_THREAD_ROOT.with(|root| {
|
||||
unsafe {
|
||||
if let Some(script_thread) = root.get() {
|
||||
(*script_thread)
|
||||
let script_thread = unsafe { &*script_thread };
|
||||
script_thread
|
||||
.docs_with_no_blocking_loads
|
||||
.borrow_mut()
|
||||
.insert(Dom::from_ref(doc));
|
||||
}}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue