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

Unified Diff: Source/web/FullscreenController.cpp

Issue 308513002: Fix fullscreen media control position issue when switching orientation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary scroll reset Created 6 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/FullscreenController.h ('k') | Source/web/WebViewImpl.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 fdb4262617b76ec5417dfcc128468bbdc8949ec7..01dfbcfcf806ad839c2964d8d0aed5b70dfe3639 100644
--- a/Source/web/FullscreenController.cpp
+++ b/Source/web/FullscreenController.cpp
@@ -83,6 +83,8 @@ void FullscreenController::didEnterFullScreen()
m_exitFullscreenScrollOffset = m_webViewImpl->mainFrame()->scrollOffset();
m_exitFullscreenPinchViewportOffset = m_webViewImpl->pinchViewportOffset();
m_webViewImpl->setPageScaleFactor(1.0f);
+ m_webViewImpl->setMainFrameScrollOffset(IntPoint());
+ m_webViewImpl->setPinchViewportOffset(FloatPoint());
}
FullscreenElementStack::from(*doc).webkitDidEnterFullScreenForElement(0);
« no previous file with comments | « Source/web/FullscreenController.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698