| 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 804f75d88c2f34fe3eaec5c1db5239ab51cbd93e..9d53445d8a52740a4ee36f399ed239d34ee5ea1e 100644
|
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -39,6 +39,7 @@
|
| #include "core/frame/FrameHost.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/RemoteFrame.h"
|
| +#include "core/frame/RemoteFrameView.h"
|
| #include "core/frame/Settings.h"
|
| #include "core/frame/VisualViewport.h"
|
| #include "core/html/HTMLTextAreaElement.h"
|
| @@ -807,6 +808,17 @@ void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) {
|
| }
|
| }
|
|
|
| +void WebFrameWidgetImpl::setRemoteViewportIntersection(
|
| + const WebRect& viewportIntersection) {
|
| + // Remote viewports are only applicable to local frames with remote ancestors.
|
| + if (!m_localRoot->parent() || !m_localRoot->parent()->isWebRemoteFrame())
|
| + return;
|
| + if (m_localRoot->frameView()) {
|
| + m_localRoot->frameView()->setViewportIntersectionFromParent(
|
| + viewportIntersection);
|
| + }
|
| +}
|
| +
|
| void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame,
|
| const WebMouseEvent& event) {
|
| // FIXME: WebWidget doesn't have the method below.
|
|
|