Created
June 28, 2018 23:57
-
-
Save Manishearth/b39a777d0afcf333fdb77cc0506a975b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/components/script/dom/audionode.rs b/components/script/dom/audionode.rs | |
index e8c03fbd62..2868996876 100644 | |
--- a/components/script/dom/audionode.rs | |
+++ b/components/script/dom/audionode.rs | |
@@ -21,7 +21,7 @@ pub static MAX_CHANNEL_COUNT: u32 = 32; | |
#[dom_struct] | |
pub struct AudioNode { | |
- reflector_: Reflector, | |
+ eventtarget: EventTarget, | |
#[ignore_malloc_size_of = "servo_media"] | |
node_id: NodeId, | |
context: DomRoot<BaseAudioContext>, | |
@@ -43,7 +43,7 @@ impl AudioNode { | |
context.audio_context_impl().create_node(node_type) | |
}); | |
AudioNode { | |
- reflector_: Reflector::new(), | |
+ eventtarget: EventTarget::new_inherited(), | |
node_id, | |
context: DomRoot::from_ref(context), | |
number_of_inputs, | |
diff --git a/components/script/dom/baseaudiocontext.rs b/components/script/dom/baseaudiocontext.rs | |
index e0172b84d1..dc23ae2040 100644 | |
--- a/components/script/dom/baseaudiocontext.rs | |
+++ b/components/script/dom/baseaudiocontext.rs | |
@@ -38,7 +38,7 @@ pub enum BaseAudioContextOptions { | |
#[dom_struct] | |
pub struct BaseAudioContext { | |
- reflector_: Reflector, | |
+ eventtarget: EventTarget, | |
#[ignore_malloc_size_of = "servo_media"] | |
audio_context_impl: AudioContext, | |
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-destination | |
@@ -74,7 +74,7 @@ impl BaseAudioContext { | |
let sample_rate = options.sample_rate; | |
let mut context = BaseAudioContext { | |
- reflector_: Reflector::new(), | |
+ eventtarget: EventTarget::new_inherited(), | |
audio_context_impl: ServoMedia::get().unwrap().create_audio_context(options.into()), | |
destination: None, | |
in_flight_resume_promises_queue: Default::default(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment