mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ee9e1fbbd6
commit
65c866285f
26 changed files with 77 additions and 37 deletions
|
@ -8,6 +8,7 @@
|
|||
use crate::dom::bindings::reflector::DomObject;
|
||||
use crate::dom::bindings::structuredclone::StructuredDataHolder;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
/// The key corresponding to the storage location
|
||||
/// of a serialized platform object stored in a StructuredDataHolder.
|
||||
|
@ -27,5 +28,6 @@ pub trait Serializable: DomObject {
|
|||
owner: &GlobalScope,
|
||||
sc_holder: &mut StructuredDataHolder,
|
||||
extra_data: StorageKey,
|
||||
can_gc: CanGc,
|
||||
) -> Result<(), ()>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue