Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2839)

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 591413004: Send initializeChildFrame from RenderFrameProxy instead of WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Undo changes to TestWebFrameClient Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698