diff options
author | Auguste Baum <52001167+augustebaum@users.noreply.github.com> | 2025-02-20 17:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 16:17:45 +0000 |
commit | 863d2ce8710fc5141b2c8fd0743697c0956412cb (patch) | |
tree | 05d3f853fa53b38a359427ac3d9ff19b7bc75db6 /components/script/dom/audioparam.rs | |
parent | 5465bfc2af38e561df5f0a7f81250a0238520d6d (diff) | |
download | servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.tar.gz servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.zip |
Propagate `CanGc` arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/audioparam.rs')
-rw-r--r-- | components/script/dom/audioparam.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/audioparam.rs b/components/script/dom/audioparam.rs index bb536d24995..3c5adb7ab46 100644 --- a/components/script/dom/audioparam.rs +++ b/components/script/dom/audioparam.rs @@ -78,6 +78,7 @@ impl AudioParam { default_value: f32, min_value: f32, max_value: f32, + can_gc: CanGc, ) -> DomRoot<AudioParam> { let audio_param = AudioParam::new_inherited( context, @@ -89,7 +90,7 @@ impl AudioParam { min_value, max_value, ); - reflect_dom_object(Box::new(audio_param), window, CanGc::note()) + reflect_dom_object(Box::new(audio_param), window, can_gc) } fn message_node(&self, message: AudioNodeMessage) { |