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

Unified Diff: Source/core/plugins/DOMPluginArray.cpp

Issue 879423003: Move Location to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
Index: Source/core/plugins/DOMPluginArray.cpp
diff --git a/Source/core/plugins/DOMPluginArray.cpp b/Source/core/plugins/DOMPluginArray.cpp
index 4c711e9c6b0d3b3f024013f0ea4171d59a21005a..30504dad8de3a724fd557f65d4c4c094949f8c52 100644
--- a/Source/core/plugins/DOMPluginArray.cpp
+++ b/Source/core/plugins/DOMPluginArray.cpp
@@ -54,7 +54,7 @@ PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index)
const Vector<PluginInfo>& plugins = data->plugins();
if (index >= plugins.size())
return nullptr;
- return DOMPlugin::create(data, m_frame, index).get();
+ return DOMPlugin::create(data, localFrame(), index).get();
}
bool DOMPluginArray::canGetItemsForName(const AtomicString& propertyName)
@@ -78,7 +78,7 @@ PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::namedItem(const AtomicString&
const Vector<PluginInfo>& plugins = data->plugins();
for (unsigned i = 0; i < plugins.size(); ++i) {
if (plugins[i].name == propertyName)
- return DOMPlugin::create(data, m_frame, i).get();
+ return DOMPlugin::create(data, localFrame(), i).get();
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698