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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2431613002: Initial viewport is not the same as FrameView rect. (Closed)
Patch Set: DCHECK that initial viewport size is read from main frame only. Created 4 years, 2 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 | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index e7656d4599529f41e05797222ecb259d8cabcb79..494aba995760a8a85db9bc0175d235d8ff24eae9 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1906,6 +1906,7 @@ void WebViewImpl::performResize() {
page()->frameHost().visualViewport().setSize(m_size);
if (mainFrameImpl()->frameView()) {
+ mainFrameImpl()->frameView()->setInitialViewportSize(ICBSize);
if (!mainFrameImpl()->frameView()->needsLayout())
postLayoutResize(mainFrameImpl());
}
@@ -4009,6 +4010,7 @@ void WebViewImpl::layoutUpdated(WebLocalFrameImpl* webframe) {
page()->frameHost().visualViewport().setSize(m_size);
pageScaleConstraintsSet().didChangeInitialContainingBlockSize(m_size);
+ frame->view()->setInitialViewportSize(m_size);
m_client->didAutoResize(m_size);
sendResizeEventAndRepaint();
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698