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

Unified Diff: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp

Issue 2036403002: Always use the WebFrameWidget when attaching the root graphics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding comments 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
Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
index de41d3e91ce8ecd9b5bb46b2f2c9ee33fae80b21..0a6758d3f0c2d5e29755c430ad8546c204d21430 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -425,9 +425,10 @@ TEST_P(ParameterizedVisualViewportTest, TestWebViewResizedBeforeAttachment)
// Make sure that a resize that comes in while there's no root layer is
// honoured when we attach to the layer tree.
- webViewImpl()->setRootGraphicsLayer(nullptr);
+ WebFrameWidget* mainFrameWidget = static_cast<WebFrameWidget*>(webViewImpl()->mainFrame()->toWebLocalFrame()->frameWidget());
+ mainFrameWidget->setRootGraphicsLayer(nullptr);
webViewImpl()->resize(IntSize(320, 240));
- webViewImpl()->setRootGraphicsLayer(rootGraphicsLayer);
+ mainFrameWidget->setRootGraphicsLayer(rootGraphicsLayer);
navigateTo("about:blank");
webViewImpl()->updateAllLifecyclePhases();

Powered by Google App Engine
This is Rietveld 408576698