Index: Source/modules/webaudio/AudioContext.cpp |
diff --git a/Source/modules/webaudio/AudioContext.cpp b/Source/modules/webaudio/AudioContext.cpp |
index 6e4ddf65add102016812c4947f32b902ee144636..199be4ddbeacda15f2a0ff97e5a5cdacf64460b4 100644 |
--- a/Source/modules/webaudio/AudioContext.cpp |
+++ b/Source/modules/webaudio/AudioContext.cpp |
@@ -89,7 +89,7 @@ bool AudioContext::isSampleRateRangeGood(float sampleRate) |
const unsigned MaxHardwareContexts = 6; |
unsigned AudioContext::s_hardwareContextCount = 0; |
-PassRefPtrWillBeRawPtr<AudioContext> AudioContext::create(Document& document, ExceptionState& exceptionState) |
+PassRefPtrWillBeRawPtr<AudioContext> AudioContext::create(ExecutionContext* executionContext, ExceptionState& exceptionState) |
{ |
ASSERT(isMainThread()); |
if (s_hardwareContextCount >= MaxHardwareContexts) { |
@@ -99,7 +99,7 @@ PassRefPtrWillBeRawPtr<AudioContext> AudioContext::create(Document& document, Ex |
return nullptr; |
} |
- RefPtrWillBeRawPtr<AudioContext> audioContext(adoptRefWillBeThreadSafeRefCountedGarbageCollected(new AudioContext(&document))); |
+ RefPtrWillBeRawPtr<AudioContext> audioContext(adoptRefWillBeThreadSafeRefCountedGarbageCollected(new AudioContext(toDocument(executionContext)))); |
audioContext->suspendIfNeeded(); |
return audioContext.release(); |
} |