mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Introduce PendingScript
This moves scripts' loading results in Document, instead of maintaining them behind a DOMRefCell in each HTMLScriptElement.
This commit is contained in:
parent
965370c0bf
commit
30f0553ac7
8 changed files with 193 additions and 82 deletions
|
@ -11,7 +11,7 @@ use style::thread_state;
|
|||
///
|
||||
/// This extends the API of `core::cell::RefCell` to allow unsafe access in
|
||||
/// certain situations, with dynamic checking in debug builds.
|
||||
#[derive(Clone, PartialEq, Debug, HeapSizeOf)]
|
||||
#[derive(Clone, Debug, Default, HeapSizeOf, PartialEq)]
|
||||
pub struct DOMRefCell<T> {
|
||||
value: RefCell<T>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue