refactor: propagate CanGc arguments through callers (#35591)

Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
Auguste Baum 2025-02-23 01:34:51 +01:00 committed by GitHub
parent 02199520f2
commit b0b0289014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 403 additions and 275 deletions

View file

@ -63,6 +63,7 @@ impl PannerNode {
window: &Window,
context: &BaseAudioContext,
options: &PannerOptions,
can_gc: CanGc,
) -> Fallible<PannerNode> {
let node_options = options.parent.unwrap_or(
2,
@ -106,7 +107,7 @@ impl PannerNode {
options.position_x, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
let position_y = AudioParam::new(
window,
@ -118,7 +119,7 @@ impl PannerNode {
options.position_y, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
let position_z = AudioParam::new(
window,
@ -130,7 +131,7 @@ impl PannerNode {
options.position_z, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
let orientation_x = AudioParam::new(
window,
@ -142,7 +143,7 @@ impl PannerNode {
options.orientation_x, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
let orientation_y = AudioParam::new(
window,
@ -154,7 +155,7 @@ impl PannerNode {
options.orientation_y, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
let orientation_z = AudioParam::new(
window,
@ -166,7 +167,7 @@ impl PannerNode {
options.orientation_z, // default value
f32::MIN, // min value
f32::MAX, // max value
CanGc::note(),
can_gc,
);
Ok(PannerNode {
node,
@ -204,7 +205,7 @@ impl PannerNode {
options: &PannerOptions,
can_gc: CanGc,
) -> Fallible<DomRoot<PannerNode>> {
let node = PannerNode::new_inherited(window, context, options)?;
let node = PannerNode::new_inherited(window, context, options, can_gc)?;
Ok(reflect_dom_object_with_proto(
Box::new(node),
window,