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

Unified Diff: Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp

Issue 336553003: Change Page::m_mainFrame to be a Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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/core/testing/Internals.cpp ('k') | Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp
diff --git a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp
index e49ad92e5365d2707927e6c3c8ee8d54e5370653..4e2e45181876a94679bcab4173cfd36eecd910c1 100644
--- a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp
+++ b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp
@@ -41,8 +41,8 @@ DeviceOrientationInspectorAgent::DeviceOrientationInspectorAgent(Page& page)
DeviceOrientationController& DeviceOrientationInspectorAgent::controller()
{
- ASSERT(m_page.mainFrame()->document());
- return DeviceOrientationController::from(*m_page.mainFrame()->document());
+ ASSERT(toLocalFrame(m_page.mainFrame())->document());
+ return DeviceOrientationController::from(*m_page.deprecatedLocalMainFrame()->document());
}
void DeviceOrientationInspectorAgent::setDeviceOrientationOverride(ErrorString* error, double alpha, double beta, double gamma)
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698