aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/oscillatornode.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-07-12 17:57:08 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-07-30 14:21:48 +0200
commit21cb160be3d2042c5d2100f5ab50f500500a510e (patch)
treede6132c6320eb0331b62d3d6d15f527025a0dacf /components/script/dom/oscillatornode.rs
parentf0a691e474cc328b80bc249c62b49702b419d191 (diff)
downloadservo-21cb160be3d2042c5d2100f5ab50f500500a510e.tar.gz
servo-21cb160be3d2042c5d2100f5ab50f500500a510e.zip
test-tidy fixes
Diffstat (limited to 'components/script/dom/oscillatornode.rs')
-rw-r--r--components/script/dom/oscillatornode.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/script/dom/oscillatornode.rs b/components/script/dom/oscillatornode.rs
index f5e5d5df886..f44fa747f7d 100644
--- a/components/script/dom/oscillatornode.rs
+++ b/components/script/dom/oscillatornode.rs
@@ -1,13 +1,13 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v.2.0. If a copy of the MPL was not distributed with this
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::audioparam::AudioParam;
use dom::audioscheduledsourcenode::AudioScheduledSourceNode;
use dom::baseaudiocontext::BaseAudioContext;
-use dom::bindings::codegen::Bindings::AudioParamBinding::AutomationRate;
-use dom::bindings::codegen::Bindings::AudioNodeBinding::AudioNodeOptions;
use dom::bindings::codegen::Bindings::AudioNodeBinding::{ChannelCountMode, ChannelInterpretation};
+use dom::bindings::codegen::Bindings::AudioNodeBinding::AudioNodeOptions;
+use dom::bindings::codegen::Bindings::AudioParamBinding::AutomationRate;
use dom::bindings::codegen::Bindings::OscillatorNodeBinding::{self, OscillatorOptions, OscillatorType};
use dom::bindings::codegen::Bindings::OscillatorNodeBinding::OscillatorNodeMethods;
use dom::bindings::error::Fallible;
@@ -97,10 +97,12 @@ impl OscillatorNode {
}
impl OscillatorNodeMethods for OscillatorNode {
+ // https://webaudio.github.io/web-audio-api/#dom-oscillatornode-frequency
fn Frequency(&self) -> DomRoot<AudioParam> {
DomRoot::from_ref(&self.frequency)
}
+ // https://webaudio.github.io/web-audio-api/#dom-oscillatornode-detune
fn Detune(&self) -> DomRoot<AudioParam> {
DomRoot::from_ref(&self.detune)
}