summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/Api/qgraphicswebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/Api/qgraphicswebview.cpp')
-rw-r--r--WebKit/qt/Api/qgraphicswebview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/WebKit/qt/Api/qgraphicswebview.cpp b/WebKit/qt/Api/qgraphicswebview.cpp
index 6cc2aa0..c8438f3 100644
--- a/WebKit/qt/Api/qgraphicswebview.cpp
+++ b/WebKit/qt/Api/qgraphicswebview.cpp
@@ -140,8 +140,8 @@ void QGraphicsWebViewPrivate::updateResizesToContentsForPage()
QObject::disconnect(page->mainFrame(), SIGNAL(contentsSizeChanged(QSize)),
q, SLOT(_q_contentsSizeChanged(const QSize&)));
}
- page->d->page->settings()->setShouldDelegateScrolling(resizesToContents);
page->d->page->mainFrame()->view()->setPaintsEntireContents(resizesToContents);
+ page->d->page->mainFrame()->view()->setDelegatesScrolling(resizesToContents);
}
void QGraphicsWebViewPrivate::_q_contentsSizeChanged(const QSize& size)
@@ -413,8 +413,6 @@ void QGraphicsWebViewPrivate::detachCurrentPage()
if (!page)
return;
- page->d->page->settings()->setShouldDelegateScrolling(false);
-
page->d->view.clear();
// The client has always to be deleted.