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

Unified Diff: third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp

Issue 2375873003: Make DOMWindowProperty::m_frame private (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp
diff --git a/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp b/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp
index 95b464dd1f1bb865ac19059edadf29da666724f2..4f9cace7c755ac80302ea30096bb5f67b5dc49f3 100644
--- a/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp
+++ b/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.cpp
@@ -53,7 +53,7 @@ DOMMimeType* DOMMimeTypeArray::item(unsigned index)
const Vector<MimeClassInfo>& mimes = data->mimes();
if (index >= mimes.size())
return nullptr;
- return DOMMimeType::create(data, m_frame, index);
+ return DOMMimeType::create(data, frame(), index);
}
DOMMimeType* DOMMimeTypeArray::namedItem(const AtomicString& propertyName)
@@ -64,16 +64,16 @@ DOMMimeType* DOMMimeTypeArray::namedItem(const AtomicString& propertyName)
const Vector<MimeClassInfo>& mimes = data->mimes();
for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i].type == propertyName)
- return DOMMimeType::create(data, m_frame, i);
+ return DOMMimeType::create(data, frame(), i);
}
return nullptr;
}
PluginData* DOMMimeTypeArray::getPluginData() const
{
- if (!m_frame)
+ if (!frame())
return nullptr;
- return m_frame->pluginData();
+ return frame()->pluginData();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698