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

Unified Diff: third_party/WebKit/Source/web/FullscreenController.h

Issue 2122013003: Wait until after layout when restoring scroll on exiting fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests after foolip@'s patch Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/web/FullscreenController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/FullscreenController.h
diff --git a/third_party/WebKit/Source/web/FullscreenController.h b/third_party/WebKit/Source/web/FullscreenController.h
index a4e1ffd4a8f72bd2d74bc9120a14d3f613589753..ab4990582800751dcee97ecdaf02fef7e15c6322 100644
--- a/third_party/WebKit/Source/web/FullscreenController.h
+++ b/third_party/WebKit/Source/web/FullscreenController.h
@@ -56,6 +56,8 @@ public:
void updateSize();
+ void didUpdateLayout();
+
DECLARE_TRACE();
protected:
@@ -70,6 +72,7 @@ private:
float m_exitFullscreenPageScaleFactor;
IntSize m_exitFullscreenScrollOffset;
FloatPoint m_exitFullscreenVisualViewportOffset;
+ bool m_needsScrollAndScaleRestore;
// If set, the WebView is transitioning to fullscreen for this element.
Member<Element> m_provisionalFullScreenElement;
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/FullscreenController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698