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

Unified Diff: content/browser/frame_host/render_frame_host_manager.cc

Issue 1420203007: Correctly find root RWHV from a nested WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/if/while Created 5 years, 2 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 | « content/browser/frame_host/render_frame_host_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 7e53ce84586f542c2573c4409bf1691a49415278..7d89f5e4a0ffb6a93324a67d2ba2cf44697448f5 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -316,6 +316,12 @@ RenderFrameHostManager::GetOuterRenderWidgetHostForKeyboardInput() {
->GetWidget();
}
+FrameTreeNode* RenderFrameHostManager::GetOuterDelegateNode() {
+ int outer_contents_frame_tree_node_id =
+ delegate_->GetOuterDelegateFrameTreeNodeID();
+ return FrameTreeNode::GloballyFindByID(outer_contents_frame_tree_node_id);
+}
+
RenderFrameProxyHost* RenderFrameHostManager::GetProxyToParent() {
if (frame_tree_node_->IsMainFrame())
return nullptr;
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698