Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 3a8eb5e438717fa250373d474b194ad5d87975b9..9ff3f5f15ed45accdf3baac7deb4bfa623b3d455 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -117,11 +117,11 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld* |
m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()); |
Document* document = m_webFrame->frame()->document(); |
if (document) { |
- WheelController::from(document); |
+ WheelController::from(*document); |
if (RuntimeEnabledFeatures::deviceMotionEnabled()) |
- DeviceMotionController::from(document); |
+ DeviceMotionController::from(*document); |
if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |
- DeviceOrientationController::from(document); |
+ DeviceOrientationController::from(*document); |
} |
} |
} |
@@ -504,7 +504,8 @@ void FrameLoaderClientImpl::postProgressFinishedNotification() |
void FrameLoaderClientImpl::loadURLExternally(const ResourceRequest& request, NavigationPolicy policy, const String& suggestedName) |
{ |
if (m_webFrame->client()) { |
- DocumentFullscreen::webkitCancelFullScreen(m_webFrame->frame()->document()); |
+ ASSERT(m_webFrame->frame()->document()); |
+ DocumentFullscreen::webkitCancelFullScreen(*m_webFrame->frame()->document()); |
WrappedResourceRequest webreq(request); |
m_webFrame->client()->loadURLExternally( |
m_webFrame, webreq, static_cast<WebNavigationPolicy>(policy), suggestedName); |