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

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

Issue 33523002: Have Frame::script() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/parser/HTMLParserOptions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index a35467ce683390a97be71cc33030e9545f0457bc..4a8223533422d3860009e911355eb868a4fb7dee 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -124,7 +124,7 @@ SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper()
// the cached allocated Bindings::Instance. Not supporting this edge-case is OK.
if (!m_pluginWrapper) {
if (Widget* widget = pluginWidget())
- m_pluginWrapper = frame->script()->createPluginWrapper(widget);
+ m_pluginWrapper = frame->script().createPluginWrapper(widget);
}
return m_pluginWrapper.get();
}
@@ -247,7 +247,7 @@ NPObject* HTMLPlugInElement::getNPObject()
{
ASSERT(document().frame());
if (!m_NPObject)
- m_NPObject = document().frame()->script()->createScriptObjectForPluginElement(this);
+ m_NPObject = document().frame()->script().createScriptObjectForPluginElement(this);
return m_NPObject;
}
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/parser/HTMLParserOptions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698