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

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

Issue 1397713004: Don't bother layout until first navigation is done. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document::isInitialEmptyDocument() Created 4 years, 11 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
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 17424826a5900d818fc4cb0ba8fa7a196d27cb93..03c4f0a92f577c74a2519770743988b7be8982ed 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1911,7 +1911,8 @@ void WebViewImpl::resizeViewWhileAnchored(FrameView* view)
// Update lifecyle phases immediately to recalculate the minimum scale limit for rotation anchoring,
// and to make sure that no lifecycle states are stale if this WebView is embedded in another one.
- updateAllLifecyclePhases();
+ if (!view->frame().document()->isInitialEmptyDocument())
+ updateAllLifecyclePhases();
}
void WebViewImpl::resize(const WebSize& newSize)

Powered by Google App Engine
This is Rietveld 408576698