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

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

Issue 1481793002: Drop [LegacyInterfaceTypeChecking] where trivial in Web Audio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self.hasOwnProperty(errorType) Created 5 years, 1 month 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/AudioBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
index d7c888848d0e54971342da1dda9e783cc74c0342..33879451908853f37c82b30575efd0970d8be752 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
@@ -208,15 +208,6 @@ void AudioBuffer::copyFromChannel(DOMFloat32Array* destination, long channelNumb
void AudioBuffer::copyFromChannel(DOMFloat32Array* destination, long channelNumber, unsigned long startInChannel, ExceptionState& exceptionState)
{
- if (!destination) {
- exceptionState.throwDOMException(
- TypeMismatchError,
- ExceptionMessages::argumentNullOrIncorrectType(
- 1,
- "Float32Array"));
- return;
- }
-
if (channelNumber < 0 || channelNumber >= static_cast<long>(m_channels.size())) {
exceptionState.throwDOMException(
IndexSizeError,
@@ -265,15 +256,6 @@ void AudioBuffer::copyToChannel(DOMFloat32Array* source, long channelNumber, Exc
void AudioBuffer::copyToChannel(DOMFloat32Array* source, long channelNumber, unsigned long startInChannel, ExceptionState& exceptionState)
{
- if (!source) {
- exceptionState.throwDOMException(
- TypeMismatchError,
- ExceptionMessages::argumentNullOrIncorrectType(
- 1,
- "Float32Array"));
- return;
- }
-
if (channelNumber < 0 || channelNumber >= static_cast<long>(m_channels.size())) {
exceptionState.throwDOMException(
IndexSizeError,

Powered by Google App Engine
This is Rietveld 408576698