mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
CanGc fixes in components/script/dom (#33891)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
9c893c7f4d
commit
f826698d6e
13 changed files with 49 additions and 25 deletions
|
@ -50,6 +50,7 @@ impl GPUSupportedFeatures {
|
|||
global: &GlobalScope,
|
||||
proto: Option<HandleObject>,
|
||||
features: Features,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<GPUSupportedFeatures> {
|
||||
let mut set = IndexSet::new();
|
||||
if features.contains(Features::DEPTH_CLIP_CONTROL) {
|
||||
|
@ -103,7 +104,7 @@ impl GPUSupportedFeatures {
|
|||
}),
|
||||
global,
|
||||
proto,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -112,8 +113,9 @@ impl GPUSupportedFeatures {
|
|||
global: &GlobalScope,
|
||||
proto: Option<HandleObject>,
|
||||
features: Features,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<DomRoot<GPUSupportedFeatures>> {
|
||||
Ok(GPUSupportedFeatures::new(global, proto, features))
|
||||
Ok(GPUSupportedFeatures::new(global, proto, features, can_gc))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue