mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use new params impl (#4)
* AudioNodeType -> AudioNodeInit * Use new param type system, clean up
This commit is contained in:
parent
8f9a081ff0
commit
f0d04249f9
9 changed files with 113 additions and 146 deletions
|
@ -10,7 +10,7 @@ use dom::bindings::reflector::reflect_dom_object;
|
|||
use dom::bindings::root::DomRoot;
|
||||
use dom::globalscope::GlobalScope;
|
||||
use dom_struct::dom_struct;
|
||||
use servo_media::audio::node::AudioNodeType;
|
||||
use servo_media::audio::node::AudioNodeInit;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct AudioDestinationNode {
|
||||
|
@ -21,7 +21,7 @@ impl AudioDestinationNode {
|
|||
fn new_inherited(context: &BaseAudioContext,
|
||||
options: &AudioNodeOptions) -> AudioDestinationNode {
|
||||
AudioDestinationNode {
|
||||
node: AudioNode::new_inherited(AudioNodeType::DestinationNode,
|
||||
node: AudioNode::new_inherited(AudioNodeInit::DestinationNode,
|
||||
Some(context.destination_node()),
|
||||
context, options, 1, 1),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue