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

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

Issue 2659183002: [RootLayerScrolls] Fix frame scrolling layer in ScrollingCoordinator (Closed)
Patch Set: Created 3 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/tests/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
index 74884f37fc6a0d69fd905dc5edd84b482f88c574..6d08e07e6b7143d40b7703239cf9cd2fc300efdb 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -1652,13 +1652,15 @@ TEST_P(VisualViewportTest, TestChangingContentSizeAffectsScrollBounds) {
navigateTo(m_baseURL + "content-width-1000.html");
FrameView& frameView = *webViewImpl()->mainFrameImpl()->frameView();
- WebLayer* scrollLayer = frameView.layerForScrolling()->platformLayer();
webViewImpl()->mainFrame()->executeScript(
WebScriptSource("var content = document.getElementById(\"content\");"
"content.style.width = \"1500px\";"
"content.style.height = \"2400px\";"));
frameView.updateAllLifecyclePhases();
+ WebLayer* scrollLayer = frameView.layoutViewportScrollableArea()
+ ->layerForScrolling()
+ ->platformLayer();
EXPECT_SIZE_EQ(IntSize(1500, 2400), IntSize(scrollLayer->bounds()));
}

Powered by Google App Engine
This is Rietveld 408576698