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

Unified Diff: Source/core/frame/RemoteFrame.cpp

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 years, 9 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/core/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLAppletElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/RemoteFrame.cpp
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
index bfc8454c1a515d1393db9fb054210ab64887447a..c54b26029e4e7e998bf97bef1f87ba0326197ea0 100644
--- a/Source/core/frame/RemoteFrame.cpp
+++ b/Source/core/frame/RemoteFrame.cpp
@@ -6,7 +6,7 @@
#include "core/frame/RemoteFrame.h"
#include "core/frame/RemoteFrameView.h"
-#include "core/rendering/RenderPart.h"
+#include "core/html/HTMLFrameOwnerElement.h"
namespace WebCore {
@@ -36,8 +36,10 @@ void RemoteFrame::createView()
RefPtr<RemoteFrameView> view = RemoteFrameView::create(this);
setView(view);
- if (ownerRenderer())
- ownerRenderer()->setWidget(view);
+ if (ownerRenderer()) {
+ ASSERT(ownerElement());
+ ownerElement()->setWidget(view);
+ }
}
} // namespace WebCore
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLAppletElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698