Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
index c33bd1de857f47a8cede03d49c0482f9c6601706..458931fbd2478789ec7f0c904efcd4820e505f4f 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
@@ -96,9 +96,7 @@ PeriodicWave* PeriodicWave::Create(BaseAudioContext& context,
PeriodicWave* PeriodicWave::Create(BaseAudioContext* context,
const PeriodicWaveOptions& options,
ExceptionState& exception_state) {
- bool normalize = options.hasDisableNormalization()
- ? options.disableNormalization()
- : false;
+ bool normalize = options.disableNormalization();
Vector<float> real_coef;
Vector<float> imag_coef;

Powered by Google App Engine
This is Rietveld 408576698