| Index: Source/web/WebRemoteFrameImpl.cpp
|
| diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp
|
| index ddd1552ed65134b927d39c4eb5d2d695ba96b064..bf4b6f7730f3aa09d60e0a550fd21bc43a8aa487 100644
|
| --- a/Source/web/WebRemoteFrameImpl.cpp
|
| +++ b/Source/web/WebRemoteFrameImpl.cpp
|
| @@ -6,6 +6,7 @@
|
| #include "web/WebRemoteFrameImpl.h"
|
|
|
| #include "core/frame/FrameOwner.h"
|
| +#include "core/frame/FrameView.h"
|
| #include "core/frame/RemoteFrame.h"
|
| #include "core/frame/Settings.h"
|
| #include "core/page/Page.h"
|
| @@ -879,4 +880,13 @@ WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame)
|
| return static_cast<RemoteFrameClient*>(frame.client())->webFrame();
|
| }
|
|
|
| +void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const
|
| +{
|
| + ASSERT(source);
|
| + WebLocalFrameImpl* localFrameImpl = toWebLocalFrameImpl(source);
|
| + client()->initializeChildFrame(
|
| + localFrameImpl->frame()->view()->frameRect(),
|
| + localFrameImpl->frame()->view()->visibleContentScaleFactor());
|
| +}
|
| +
|
| } // namespace blink
|
|
|