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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 165443003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/web/DatabaseClientImpl.cpp ('k') | Source/web/FullscreenController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/web/DatabaseClientImpl.cpp ('k') | Source/web/FullscreenController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698