| Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| index fa53cf4be94d6f5fdaa592e667ebd34d4fd8f577..a8465eea8a6777a82ab912ef9948915d2e0fea65 100644
|
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -203,9 +203,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()->visualViewport().setSize(newSize);
|
| - page()->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();
|
| }
|
|
|