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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h

Issue 1397713004: Don't bother layout until first navigation is done. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another attempt to fix tests Created 4 years, 10 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/tests/sim/SimTest.h ('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/tests/sim/SimWebViewClient.h
diff --git a/third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h b/third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h
index e0c1d364b3276ed9f4606c72e6a29f10503ebdca..ce4845b06cdd1ab316a81c35cad7c9e1d3f159ab 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h
+++ b/third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h
@@ -16,6 +16,9 @@ public:
explicit SimWebViewClient(WebLayerTreeView&);
WebLayerTreeView* layerTreeView() override { return m_layerTreeView; }
+ void didUpdateLayout() override { m_hadFirstLayout = true; }
+
+ bool hadFirstLayout() const { return m_hadFirstLayout; }
int visuallyNonEmptyLayoutCount() const { return m_visuallyNonEmptyLayoutCount; }
int finishedParsingLayoutCount() const { return m_finishedParsingLayoutCount; }
@@ -30,6 +33,7 @@ private:
int m_finishedLoadingLayoutCount;
WebLayerTreeView* m_layerTreeView;
+ bool m_hadFirstLayout = false;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimTest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698