| 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 9f4809577c95d7cf4dbf259bc8a4afb7c6ba49c3..3070cc11c820a63b78b2c62e3b21e07e2eca1f1a 100644
|
| --- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| @@ -1646,13 +1646,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()));
|
| }
|
|
|