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 d30af3f4cb0ab9fe585c049a6aa47cfc7b007d94..dd1eda6dc7619384df89106439c723b06474a9c1 100644 |
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
@@ -35,6 +35,7 @@ |
#include "core/editing/FrameSelection.h" |
#include "core/editing/InputMethodController.h" |
#include "core/editing/PlainTextRange.h" |
+#include "core/frame/FrameHost.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/RemoteFrame.h" |
#include "core/frame/Settings.h" |
@@ -199,7 +200,10 @@ void WebFrameWidgetImpl::sendResizeEventAndRepaint() |
void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) |
{ |
- // FIXME: Implement visual viewport for out-of-process iframes. |
+ // 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(); |
} |
void WebFrameWidgetImpl::updateMainFrameLayoutSize() |