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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1296533003: Introduce WebPageImportanceSignals to judge state preservation needs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 5 years, 4 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/WebViewImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 6eb50580c2bf29e160f74b222c7187075b105a8d..4f1c3a69b5f328f673d69836dfea83ebef985cd2 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3938,8 +3938,10 @@ void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor,
void WebViewImpl::didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage)
{
- if (isNewNavigation && !isNavigationWithinPage)
+ if (isNewNavigation && !isNavigationWithinPage) {
pageScaleConstraintsSet().setNeedsReset(true);
+ pageImportanceSignals().onCommitLoad();
+ }
// Give the visual viewport's scroll layer its initial size.
page()->frameHost().visualViewport().mainFrameDidChangeSize();
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698