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

Unified Diff: Source/core/html/HTMLFrameElementBase.cpp

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised method for widget lifetime management. Created 7 years, 1 month 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
Index: Source/core/html/HTMLFrameElementBase.cpp
diff --git a/Source/core/html/HTMLFrameElementBase.cpp b/Source/core/html/HTMLFrameElementBase.cpp
index fc6bfb98c359fdc672ec04e415689bc1cca438c5..ba01ac157794ddf69e5b837fa28039d9e4f5ce09 100644
--- a/Source/core/html/HTMLFrameElementBase.cpp
+++ b/Source/core/html/HTMLFrameElementBase.cpp
@@ -163,10 +163,8 @@ void HTMLFrameElementBase::attach(const AttachContext& context)
{
HTMLFrameOwnerElement::attach(context);
- if (RenderPart* part = renderPart()) {
- if (Frame* frame = contentFrame())
- part->setWidget(frame->view());
- }
+ if (Frame* frame = contentFrame())
+ setWidget(frame->view());
}
KURL HTMLFrameElementBase::location() const

Powered by Google App Engine
This is Rietveld 408576698