aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/audiodestinationnode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/audiodestinationnode.rs')
-rw-r--r--components/script/dom/audiodestinationnode.rs25
1 files changed, 17 insertions, 8 deletions
diff --git a/components/script/dom/audiodestinationnode.rs b/components/script/dom/audiodestinationnode.rs
index 95fe4e044b4..77fda8dbef5 100644
--- a/components/script/dom/audiodestinationnode.rs
+++ b/components/script/dom/audiodestinationnode.rs
@@ -18,19 +18,28 @@ pub struct AudioDestinationNode {
}
impl AudioDestinationNode {
- fn new_inherited(context: &BaseAudioContext,
- options: &AudioNodeOptions) -> AudioDestinationNode {
+ fn new_inherited(
+ context: &BaseAudioContext,
+ options: &AudioNodeOptions,
+ ) -> AudioDestinationNode {
AudioDestinationNode {
- node: AudioNode::new_inherited(AudioNodeInit::DestinationNode,
- Some(context.destination_node()),
- context, options, 1, 1),
+ node: AudioNode::new_inherited(
+ AudioNodeInit::DestinationNode,
+ Some(context.destination_node()),
+ context,
+ options,
+ 1,
+ 1,
+ ),
}
}
#[allow(unrooted_must_root)]
- pub fn new(global: &GlobalScope,
- context: &BaseAudioContext,
- options: &AudioNodeOptions) -> DomRoot<AudioDestinationNode> {
+ pub fn new(
+ global: &GlobalScope,
+ context: &BaseAudioContext,
+ options: &AudioNodeOptions,
+ ) -> DomRoot<AudioDestinationNode> {
let node = AudioDestinationNode::new_inherited(context, options);
reflect_dom_object(Box::new(node), global, AudioDestinationNodeBinding::Wrap)
}