-
eric@webkit.org authored
Reviewed by Gustavo Noronha Silva. [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs https://bugs.webkit.org/show_bug.cgi?id=21599 Implement GRefPtr, a smart pointer for reference counted GObject types. * GNUmakefile.am: * wtf/gtk/GOwnPtr.cpp: (WTF::GDir): * wtf/gtk/GRefPtr.h: Added. (WTF::): (WTF::GRefPtr::GRefPtr): (WTF::GRefPtr::~GRefPtr): (WTF::GRefPtr::clear): (WTF::GRefPtr::get): (WTF::GRefPtr::operator*): (WTF::GRefPtr::operator->): (WTF::GRefPtr::operator!): (WTF::GRefPtr::operator UnspecifiedBoolType): (WTF::GRefPtr::hashTableDeletedValue): (WTF::::operator): (WTF::::swap): (WTF::swap): (WTF::operator==): (WTF::operator!=): (WTF::static_pointer_cast): (WTF::const_pointer_cast): (WTF::getPtr): (WTF::adoptGRef): (WTF::refGPtr): (WTF::derefGPtr): 2009-12-17 Martin Robinson <martin.james.robinson@gmail.com> Reviewed by Gustavo Noronha Silva. [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs https://bugs.webkit.org/show_bug.cgi?id=21599 Add GRefPtr support for GTK types to WebCore, as JSC does not link against GTK+. Also convert PopupMenu::m_poup from a raw pointer to a GRefPtr. No new tests as functionality has not changed. * GNUmakefile.am: * platform/PopupMenu.h: * platform/gtk/GRefPtrGtk.cpp: Added. (WTF::refGPtr): (WTF::derefGPtr): * platform/gtk/GRefPtrGtk.h: Added. * platform/gtk/PopupMenuGtk.cpp: (WebCore::PopupMenu::PopupMenu): (WebCore::PopupMenu::~PopupMenu): (WebCore::PopupMenu::show): (WebCore::PopupMenu::hide): (WebCore::PopupMenu::menuRemoveItem): 2009-12-17 Martin Robinson <martin.james.robinson@gmail.com> Reviewed by Gustavo Noronha Silva. [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs https://bugs.webkit.org/show_bug.cgi?id=21599 Convert a use of GOwnPtr for a reference counted type to GRefPtr. * WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::createPlugin): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d79ae5a8