Index: Source/modules/screen_orientation/ScreenOrientation.cpp |
diff --git a/Source/modules/screen_orientation/ScreenOrientation.cpp b/Source/modules/screen_orientation/ScreenOrientation.cpp |
index 896fc9ed6be14dfe863d063544b587ce06267211..5dd3befb4aa391b9e38574f94307ac973e1cc587 100644 |
--- a/Source/modules/screen_orientation/ScreenOrientation.cpp |
+++ b/Source/modules/screen_orientation/ScreenOrientation.cpp |
@@ -158,13 +158,13 @@ ScriptPromise ScreenOrientation::lock(ScriptState* state, const AtomicString& lo |
Document* document = m_frame ? m_frame->document() : 0; |
if (!document || !controller()) { |
- RefPtrWillBeRawPtr<DOMException> exception = DOMException::create(InvalidStateError, "The object is no longer associated to a document."); |
+ DOMException* exception = DOMException::create(InvalidStateError, "The object is no longer associated to a document."); |
resolver->reject(exception); |
return promise; |
} |
if (document->isSandboxed(SandboxOrientationLock)) { |
- RefPtrWillBeRawPtr<DOMException> exception = DOMException::create(SecurityError, "The document is sandboxed and lacks the 'allow-orientation-lock' flag."); |
+ DOMException* exception = DOMException::create(SecurityError, "The document is sandboxed and lacks the 'allow-orientation-lock' flag."); |
resolver->reject(exception); |
return promise; |
} |