WebKit::LayerTreeRenderer* QRawWebView::layerTreeRenderer() const { WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea(); if (!drawingArea) return 0; WebKit::CoordinatedLayerTreeHostProxy* coordinatedLayerTreeHostProxy = drawingArea->coordinatedLayerTreeHostProxy(); if (!coordinatedLayerTreeHostProxy) return 0; return coordinatedLayerTreeHostProxy->layerTreeRenderer(); }
WebCore::CoordinatedGraphicsScene* QRawWebView::coordinatedGraphicsScene() const { WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea(); if (!drawingArea) return 0; WebKit::CoordinatedLayerTreeHostProxy* coordinatedLayerTreeHostProxy = drawingArea->coordinatedLayerTreeHostProxy(); if (!coordinatedLayerTreeHostProxy) return 0; return coordinatedLayerTreeHostProxy->coordinatedGraphicsScene(); }
CoordinatedGraphicsScene* EwkView::coordinatedGraphicsScene() { DrawingAreaProxy* drawingArea = page()->drawingArea(); if (!drawingArea) return 0; WebKit::CoordinatedLayerTreeHostProxy* coordinatedLayerTreeHostProxy = drawingArea->coordinatedLayerTreeHostProxy(); if (!coordinatedLayerTreeHostProxy) return 0; return coordinatedLayerTreeHostProxy->coordinatedGraphicsScene(); }
CoordinatedGraphicsScene* WebView::coordinatedGraphicsScene() { DrawingAreaProxy* drawingArea = m_page->drawingArea(); if (!drawingArea) return 0; WebKit::CoordinatedLayerTreeHostProxy* layerTreeHostProxy = drawingArea->coordinatedLayerTreeHostProxy(); if (!layerTreeHostProxy) return 0; return layerTreeHostProxy->coordinatedGraphicsScene(); }
void QRawWebView::setSize(const QSize& size) { WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea(); if (!drawingArea) return; if (d->m_webPageProxy->useFixedLayout()) d->m_webPageProxy->setViewportSize(size); else { WebKit::CoordinatedLayerTreeHostProxy* coordinator = drawingArea->coordinatedLayerTreeHostProxy(); if (!coordinator) return; coordinator->setContentsSize(WebCore::FloatSize(size.width(), size.height())); } d->m_size = size; drawingArea->setSize(d->m_size, WebCore::IntSize()); drawingArea->setVisibleContentsRect(WebCore::IntRect(WebCore::IntPoint(), d->m_size), 1 /*scale*/, WebCore::FloatPoint()); }