void WebFrameLoaderClient::provisionalLoadStarted() { WebPage* webPage = m_frame->page(); if (!webPage) return; if (m_frame == m_frame->page()->mainWebFrame()) webPage->drawingArea()->setLayerTreeStateIsFrozen(true); }
void WebFrameLoaderClient::frameLoadCompleted() { WebPage* webPage = m_frame->page(); if (!webPage) return; if (m_frame == m_frame->page()->mainWebFrame()) webPage->drawingArea()->setLayerTreeStateIsFrozen(false); }
void WebFrameLoaderClient::dispatchDidFirstLayout() { WebPage* webPage = m_frame->page(); if (!webPage) return; RefPtr<APIObject> userData; // Notify the bundle client. webPage->injectedBundleLoaderClient().didFirstLayoutForFrame(webPage, m_frame, userData); // Notify the UIProcess. webPage->send(Messages::WebPageProxy::DidFirstLayoutForFrame(m_frame->frameID(), InjectedBundleUserMessageEncoder(userData.get()))); if (m_frame == m_frame->page()->mainWebFrame()) webPage->drawingArea()->setLayerTreeStateIsFrozen(false); }