diff options
Diffstat (limited to 'components/script/dom/channelsplitternode.rs')
-rw-r--r-- | components/script/dom/channelsplitternode.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/channelsplitternode.rs b/components/script/dom/channelsplitternode.rs index 5e3a0d77bc9..91b885b9ed7 100644 --- a/components/script/dom/channelsplitternode.rs +++ b/components/script/dom/channelsplitternode.rs @@ -11,7 +11,9 @@ use crate::dom::baseaudiocontext::BaseAudioContext; use crate::dom::bindings::codegen::Bindings::AudioNodeBinding::{ ChannelCountMode, ChannelInterpretation, }; -use crate::dom::bindings::codegen::Bindings::ChannelSplitterNodeBinding::ChannelSplitterOptions; +use crate::dom::bindings::codegen::Bindings::ChannelSplitterNodeBinding::{ + ChannelSplitterNodeMethods, ChannelSplitterOptions, +}; use crate::dom::bindings::error::{Error, Fallible}; use crate::dom::bindings::reflector::reflect_dom_object_with_proto; use crate::dom::bindings::root::DomRoot; @@ -81,9 +83,11 @@ impl ChannelSplitterNode { can_gc, )) } +} - #[allow(non_snake_case)] - pub fn Constructor( +impl ChannelSplitterNodeMethods for ChannelSplitterNode { + /// <https://webaudio.github.io/web-audio-api/#dom-channelsplitternode-channelsplitternode> + fn Constructor( window: &Window, proto: Option<HandleObject>, can_gc: CanGc, |