diff options
author | Leon Clarke <leonclarke@google.com> | 2010-06-03 14:33:32 +0100 |
---|---|---|
committer | Leon Clarke <leonclarke@google.com> | 2010-06-08 12:24:51 +0100 |
commit | 5af96e2c7b73ebc627c6894727826a7576d31758 (patch) | |
tree | f9d5e6f6175ccd7e3d14de9b290f08937a0d17ba /WebCore/plugins/MimeType.cpp | |
parent | 8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb (diff) | |
download | external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.zip external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.gz external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.bz2 |
Merge webkit.org at r60469 : Initial merge by git.
Change-Id: I66a0047aa2af802f66bb0c7f2a8b02247a596234
Diffstat (limited to 'WebCore/plugins/MimeType.cpp')
-rw-r--r-- | WebCore/plugins/MimeType.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/WebCore/plugins/MimeType.cpp b/WebCore/plugins/MimeType.cpp index 954715a..247e7a4 100644 --- a/WebCore/plugins/MimeType.cpp +++ b/WebCore/plugins/MimeType.cpp @@ -40,17 +40,17 @@ MimeType::~MimeType() const String &MimeType::type() const { - return m_pluginData->mimes()[m_index]->type; + return mimeClassInfo().type; } const String &MimeType::suffixes() const { - return m_pluginData->mimes()[m_index]->suffixes; + return mimeClassInfo().suffixes; } const String &MimeType::description() const { - return m_pluginData->mimes()[m_index]->desc; + return mimeClassInfo().desc; } PassRefPtr<Plugin> MimeType::enabledPlugin() const @@ -59,13 +59,7 @@ PassRefPtr<Plugin> MimeType::enabledPlugin() const if (!p || !p->mainFrame()->loader()->allowPlugins(NotAboutToInstantiatePlugin)) return 0; - const PluginInfo *info = m_pluginData->mimes()[m_index]->plugin; - const Vector<PluginInfo*>& plugins = m_pluginData->plugins(); - for (size_t i = 0; i < plugins.size(); ++i) { - if (plugins[i] == info) - return Plugin::create(m_pluginData.get(), i); - } - return 0; + return Plugin::create(m_pluginData.get(), mimeClassInfo().pluginIndex); } } // namespace WebCore |