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

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

Issue 2728273002: [RLS] Don't create PaintLayerCompositor layers. (Closed)
Patch Set: rebase Created 3 years, 9 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 a308e7b3e135af03b88d913efd339e85a988b9b9..0e5a0b77711daa684ab9a87c72ba29590a866942 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -434,8 +434,6 @@ TEST_P(VisualViewportTest, TestResizeAfterHorizontalScroll) {
TEST_P(VisualViewportTest, TestWebViewResizedBeforeAttachment) {
initializeWithDesktopSettings();
FrameView& frameView = *webViewImpl()->mainFrameImpl()->frameView();
- GraphicsLayer* rootGraphicsLayer =
- frameView.layoutViewItem().compositor()->rootGraphicsLayer();
// Make sure that a resize that comes in while there's no root layer is
// honoured when we attach to the layer tree.
@@ -443,10 +441,11 @@ TEST_P(VisualViewportTest, TestWebViewResizedBeforeAttachment) {
webViewImpl()->mainFrameImpl()->frameWidget();
mainFrameWidget->setRootGraphicsLayer(nullptr);
webViewImpl()->resize(IntSize(320, 240));
- mainFrameWidget->setRootGraphicsLayer(rootGraphicsLayer);
navigateTo("about:blank");
webViewImpl()->updateAllLifecyclePhases();
+ mainFrameWidget->setRootGraphicsLayer(
+ frameView.layoutViewItem().compositor()->rootGraphicsLayer());
VisualViewport& visualViewport =
frame()->page()->frameHost().visualViewport();
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698