| Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| index cceac881f03f701b20faa4b848fe9cdef887ad1d..05ed96923fabc8910cde9d04f60c2e4a3350937e 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| @@ -7747,6 +7747,16 @@ TEST_P(ParameterizedWebFrameTest, FullscreenMainFrame) {
|
| webViewHelper.resize(WebSize(viewportWidth, viewportHeight));
|
| webViewImpl->updateAllLifecyclePhases();
|
|
|
| + WebLayer* webScrollLayer = webViewImpl->mainFrameImpl()
|
| + ->frame()
|
| + ->view()
|
| + ->layoutViewportScrollableArea()
|
| + ->layerForScrolling()
|
| + ->platformLayer();
|
| + ASSERT_TRUE(webScrollLayer->scrollable());
|
| + ASSERT_TRUE(webScrollLayer->userScrollableHorizontal());
|
| + ASSERT_TRUE(webScrollLayer->userScrollableVertical());
|
| +
|
| Document* document = webViewImpl->mainFrameImpl()->frame()->document();
|
| UserGestureIndicator gesture(DocumentUserGestureToken::create(document));
|
| Fullscreen::requestFullscreen(*document->documentElement());
|
| @@ -7758,8 +7768,12 @@ TEST_P(ParameterizedWebFrameTest, FullscreenMainFrame) {
|
| webViewImpl->updateAllLifecyclePhases();
|
|
|
| // Verify that the main frame is still scrollable.
|
| - WebLayer* webScrollLayer =
|
| - webViewImpl->compositor()->scrollLayer()->platformLayer();
|
| + webScrollLayer = webViewImpl->mainFrameImpl()
|
| + ->frame()
|
| + ->view()
|
| + ->layoutViewportScrollableArea()
|
| + ->layerForScrolling()
|
| + ->platformLayer();
|
| ASSERT_TRUE(webScrollLayer->scrollable());
|
| ASSERT_TRUE(webScrollLayer->userScrollableHorizontal());
|
| ASSERT_TRUE(webScrollLayer->userScrollableVertical());
|
|
|