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

Unified Diff: Source/web/FullscreenController.cpp

Issue 1163433003: Remove WebViewImpl helper methods for setting scroll offset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed outerViewport to layoutViewport Created 5 years, 7 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/DevToolsEmulator.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FullscreenController.cpp
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp
index 176d064861d3a610bc7324262da3a8b631e26088..482026645a5ce5d284a138d835d16dc59b0fd503 100644
--- a/Source/web/FullscreenController.cpp
+++ b/Source/web/FullscreenController.cpp
@@ -78,7 +78,7 @@ void FullscreenController::didEnterFullScreen()
updatePageScaleConstraints(false);
m_webViewImpl->setPageScaleFactor(1.0f);
- m_webViewImpl->setMainFrameScrollOffset(IntPoint());
+ m_webViewImpl->mainFrame()->setScrollOffset(WebSize());
m_webViewImpl->setPinchViewportOffset(FloatPoint());
}
@@ -121,7 +121,7 @@ void FullscreenController::didExitFullScreen()
if (m_exitFullscreenPageScaleFactor) {
updatePageScaleConstraints(true);
m_webViewImpl->setPageScaleFactor(m_exitFullscreenPageScaleFactor);
- m_webViewImpl->setMainFrameScrollOffset(IntPoint(m_exitFullscreenScrollOffset));
+ m_webViewImpl->mainFrame()->setScrollOffset(WebSize(m_exitFullscreenScrollOffset));
m_webViewImpl->setPinchViewportOffset(m_exitFullscreenPinchViewportOffset);
m_exitFullscreenPageScaleFactor = 0;
m_exitFullscreenScrollOffset = IntSize();
« no previous file with comments | « Source/web/DevToolsEmulator.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698