コード例 #1
0
ファイル: qrawwebview.cpp プロジェクト: bdholt1/WebKit
void QRawWebView::setSize(const QSize& size)
{
    WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea();
    if (!drawingArea)
        return;

    if (d->m_webPageProxy->useFixedLayout())
        drawingArea->setSize(size, WebCore::IntSize());

    d->m_size = size;

    drawingArea->setSize(d->m_size, WebCore::IntSize());
    drawingArea->setVisibleContentsRect(WebCore::IntRect(WebCore::IntPoint(), d->m_size), WebCore::FloatPoint());
}
コード例 #2
0
void QRawWebView::setSize(const QSize& size)
{
    d->m_size = size;
    d->m_webPageProxy->setViewportSize(size);


    WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea();
    if (!drawingArea)
        return;


    drawingArea->setSize(d->m_size, WebCore::IntSize());
    drawingArea->setVisibleContentsRect(WebCore::IntRect(WebCore::IntPoint(), d->m_size), 1 /*scale*/, WebCore::FloatPoint());
}
コード例 #3
0
ファイル: qrawwebview.cpp プロジェクト: rgabor-dev/webkitnix
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());
}