Changeset 30927 in webkit
- Timestamp:
- Mar 10, 2008, 6:59:37 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r30926 r30927 1 2008-03-10 Simon Hausmann <hausmann@webkit.org> 2 3 Reviewed by Lars. 4 5 Fix reference counting of returned MimeType and Plugin objects 6 created in the array wrappers. 7 8 * plugins/MimeTypeArray.cpp: 9 * plugins/MimeTypeArray.h: 10 * plugins/Plugin.cpp: 11 * plugins/Plugin.h: 12 * plugins/PluginArray.cpp: 13 * plugins/PluginArray.h: 14 1 15 2008-03-10 Simon Hausmann <hausmann@webkit.org> 2 16 -
trunk/WebCore/plugins/MimeTypeArray.cpp
r30923 r30927 45 45 } 46 46 47 MimeType*MimeTypeArray::item(unsigned index)47 PassRefPtr<MimeType> MimeTypeArray::item(unsigned index) 48 48 { 49 49 PluginData* data = getPluginData(); … … 69 69 } 70 70 71 MimeType*MimeTypeArray::nameGetter(const AtomicString& propertyName)71 PassRefPtr<MimeType> MimeTypeArray::nameGetter(const AtomicString& propertyName) 72 72 { 73 73 PluginData *data = getPluginData(); -
trunk/WebCore/plugins/MimeTypeArray.h
r30923 r30927 21 21 #define MimeTypeArray_h 22 22 23 #include "MimeType.h" 23 24 #include <wtf/PassRefPtr.h> 24 25 #include <wtf/RefCounted.h> … … 34 35 class AtomicString; 35 36 class Frame; 36 class MimeType;37 37 class PluginData; 38 38 … … 48 48 49 49 unsigned length() const; 50 MimeType*item(unsigned index);50 PassRefPtr<MimeType> item(unsigned index); 51 51 bool canGetItemsForName(const AtomicString& propertyName); 52 MimeType*nameGetter(const AtomicString& propertyName);52 PassRefPtr<MimeType> nameGetter(const AtomicString& propertyName); 53 53 private: 54 54 MimeTypeArray(Frame*); -
trunk/WebCore/plugins/Plugin.cpp
r30923 r30927 56 56 } 57 57 58 MimeType*Plugin::item(unsigned index)58 PassRefPtr<MimeType> Plugin::item(unsigned index) 59 59 { 60 60 const Vector<PluginInfo*>& plugins = m_pluginData->plugins(); … … 80 80 } 81 81 82 MimeType*Plugin::nameGetter(const AtomicString& propertyName)82 PassRefPtr<MimeType> Plugin::nameGetter(const AtomicString& propertyName) 83 83 { 84 84 const Vector<MimeClassInfo*>& mimes = m_pluginData->mimes(); -
trunk/WebCore/plugins/Plugin.h
r30923 r30927 52 52 unsigned length() const; 53 53 54 MimeType*item(unsigned index);54 PassRefPtr<MimeType> item(unsigned index); 55 55 bool canGetItemsForName(const AtomicString& propertyName); 56 MimeType*nameGetter(const AtomicString& propertyName);56 PassRefPtr<MimeType> nameGetter(const AtomicString& propertyName); 57 57 58 58 private: -
trunk/WebCore/plugins/PluginArray.cpp
r30923 r30927 45 45 } 46 46 47 P lugin*PluginArray::item(unsigned index)47 PassRefPtr<Plugin> PluginArray::item(unsigned index) 48 48 { 49 49 PluginData* data = getPluginData(); … … 69 69 } 70 70 71 P lugin*PluginArray::nameGetter(const AtomicString& propertyName)71 PassRefPtr<Plugin> PluginArray::nameGetter(const AtomicString& propertyName) 72 72 { 73 73 PluginData* data = getPluginData(); -
trunk/WebCore/plugins/PluginArray.h
r30923 r30927 21 21 #define PluginArray_h 22 22 23 #include "Plugin.h" 23 24 #include <wtf/PassRefPtr.h> 24 25 #include <wtf/RefCounted.h> … … 34 35 class AtomicString; 35 36 class Frame; 36 class Plugin;37 37 class PluginData; 38 38 … … 48 48 49 49 unsigned length() const; 50 P lugin*item(unsigned index);50 PassRefPtr<Plugin> item(unsigned index); 51 51 bool canGetItemsForName(const AtomicString& propertyName); 52 P lugin*nameGetter(const AtomicString& propertyName);52 PassRefPtr<Plugin> nameGetter(const AtomicString& propertyName); 53 53 54 54 void refresh(bool reload);
Note:
See TracChangeset
for help on using the changeset viewer.