Example #1
0
void QQuickWebPagePrivate::setDrawingAreaSize(const QSize& size)
{
    DrawingAreaProxy* drawingArea = webPageProxy->drawingArea();
    if (!drawingArea)
        return;
    drawingArea->setSize(WebCore::IntSize(size), WebCore::IntSize());
}
Example #2
0
void EwkView::setSize(const IntSize& size)
{
    m_size = size;

    DrawingAreaProxy* drawingArea = page()->drawingArea();
    if (!drawingArea)
        return;

    drawingArea->setSize(m_size, IntSize());
    webView()->updateViewportSize();
}