| Index: Source/web/WebFrameWidgetImpl.cpp
|
| diff --git a/Source/web/WebFrameWidgetImpl.cpp b/Source/web/WebFrameWidgetImpl.cpp
|
| index df861ab42c9374debbbb3dc1fdb3eef2367b3741..fa8e0bb503d7f8399db6d72ff071d2cf5cbd2ffe 100644
|
| --- a/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -1014,4 +1014,17 @@ void WebFrameWidgetImpl::setRootGraphicsLayer(GraphicsLayer* layer)
|
| suppressInvalidations(false);
|
| }
|
|
|
| +void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilityState, bool isInitialState)
|
| +{
|
| + if (!m_page)
|
| + return;
|
| +
|
| + m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState), isInitialState);
|
| +
|
| + if (m_layerTreeView) {
|
| + bool visible = visibilityState == WebPageVisibilityStateVisible;
|
| + m_layerTreeView->setVisible(visible);
|
| + }
|
| +}
|
| +
|
| } // namespace blink
|
|
|