void WebFrameLoaderClient::transitionToCommittedForNewPage() { WebPage* webPage = m_frame->page(); Color backgroundColor = webPage->drawsTransparentBackground() ? Color::transparent : Color::white; bool isMainFrame = webPage->mainWebFrame() == m_frame; bool shouldUseFixedLayout = isMainFrame && webPage->useFixedLayout(); #if !USE(TILED_BACKING_STORE) const ResourceResponse& response = m_frame->coreFrame()->loader()->documentLoader()->response(); m_frameHasCustomRepresentation = isMainFrame && WebProcess::shared().shouldUseCustomRepresentationForResponse(response); #endif m_frame->coreFrame()->createView(webPage->size(), backgroundColor, /* transparent */ false, IntSize(), shouldUseFixedLayout); m_frame->coreFrame()->view()->setTransparent(!webPage->drawsBackground()); }
AcceleratedSurface::AcceleratedSurface(WebPage& webPage) : m_webPage(webPage) , m_size(webPage.size()) { m_size.scale(m_webPage.deviceScaleFactor()); }