Rollout r231818, as it introduced regression on tickets.com.
[WebKit-https.git] / Source / WebKit / UIProcess / WebPageProxy.cpp
index 49e6d6c..b9af1d6 100644 (file)
@@ -1601,13 +1601,8 @@ void WebPageProxy::dispatchActivityStateChange()
 #endif
 
     if (changed & ActivityState::IsVisible) {
-        if (isViewVisible()) {
+        if (isViewVisible())
             m_visiblePageToken = m_process->visiblePageToken();
-#if PLATFORM(MAC) && ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING)
-            if (m_displayLink)
-                m_displayLink->resume();
-#endif
-        }
         else {
             m_visiblePageToken = nullptr;
 
@@ -1615,10 +1610,6 @@ void WebPageProxy::dispatchActivityStateChange()
             // state, it might not send back a reply (since it won't paint anything if the web page is hidden) so we
             // stop the unresponsiveness timer here.
             m_process->responsivenessTimer().stop();
-#if PLATFORM(MAC) && ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING)
-            if (m_displayLink)
-                m_displayLink->pause();
-#endif
         }
     }