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())); |
} |