diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-03-20 16:05:49 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-28 10:37:20 +0100 |
commit | 9a1a09bf82ea98a2b69b351120619c787ce990a8 (patch) | |
tree | bcd27019991abde6ede6c0fa8480eab1287d522b /src/core/web_contents_adapter.cpp | |
parent | ba5efed2905de98ed0c9eff3998c270d92a100de (diff) |
Adapt to API changes in new stable branch 1750
Change-Id: If0cc263f36d396fd505c1d8b026e2493bfc29cc4
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index 4b5af4cef..465c7be9d 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -418,15 +418,14 @@ QString WebContentsAdapter::getNavigationEntryTitle(int index) void WebContentsAdapter::clearNavigationHistory() { Q_D(WebContentsAdapter); - if (d->webContents->GetController().CanPruneAllButVisible()) - d->webContents->GetController().PruneAllButVisible(); + if (d->webContents->GetController().CanPruneAllButLastCommitted()) + d->webContents->GetController().PruneAllButLastCommitted(); } void WebContentsAdapter::setZoomFactor(qreal factor) { Q_D(WebContentsAdapter); - if (content::RenderViewHost *rvh = d->webContents->GetRenderViewHost()) - rvh->SetZoomLevel(content::ZoomFactorToZoomLevel(static_cast<double>(factor))); + d->webContents->SetZoomLevel(content::ZoomFactorToZoomLevel(static_cast<double>(factor))); } qreal WebContentsAdapter::currentZoomFactor() const @@ -475,7 +474,7 @@ quint64 WebContentsAdapter::fetchDocumentInnerText() quint64 WebContentsAdapter::findText(const QString &subString, bool caseSensitively, bool findBackward) { Q_D(WebContentsAdapter); - WebKit::WebFindOptions options; + blink::WebFindOptions options; options.forward = !findBackward; options.matchCase = caseSensitively; options.findNext = subString == d->lastSearchedString; |