summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-05-03 17:20:32 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-05-05 09:28:09 +0000
commitbb09965444b5bb20b096a291445170876225268d (patch)
treeb5f6596f7e6e941b1d7d72f0ce5181500c261529 /chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
parent7324afb043a0b1e623d8e8eb906cdc53bdeb4685 (diff)
downloadqtwebengine-chromium-bb09965444b5bb20b096a291445170876225268d.tar.gz
BASELINE: Update Chromium to 58.0.3029.98
Change-Id: Ib913750d687f29e036959c62a0cabf2412a8faa7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 8a1e33f315a..ebce92cd103 100644
--- a/chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/chromium/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -197,9 +197,11 @@ void WebFrameWidgetImpl::sendResizeEventAndRepaint() {
void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) {
// TODO(alexmos, kenrb): resizing behavior such as this should be changed
- // to use Page messages. https://crbug.com/599688.
- page()->frameHost().visualViewport().setSize(newSize);
- page()->frameHost().visualViewport().clampToBoundaries();
+ // to use Page messages. This uses the visual viewport size to set size on
+ // both the WebViewImpl size and the Page's VisualViewport. If there are
+ // multiple OOPIFs on a page, this will currently be set redundantly by
+ // each of them. See https://crbug.com/599688.
+ view()->resize(newSize);
view()->didUpdateFullscreenSize();
}
@@ -226,6 +228,11 @@ void WebFrameWidgetImpl::didExitFullscreen() {
view()->didExitFullscreen();
}
+void WebFrameWidgetImpl::setSuppressFrameRequestsWorkaroundFor704763Only(
+ bool suppressFrameRequests) {
+ page()->animator().setSuppressFrameRequestsWorkaroundFor704763Only(
+ suppressFrameRequests);
+}
void WebFrameWidgetImpl::beginFrame(double lastFrameTimeMonotonic) {
TRACE_EVENT1("blink", "WebFrameWidgetImpl::beginFrame", "frameTime",
lastFrameTimeMonotonic);