Changeset 44183 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 27, 2009, 3:21:49 AM (16 years ago)
Author:
[email protected]
Message:

JavaScripCore:
2009-05-26 Holger Hans Peter Freyther <[email protected]>

Reviewed by Xan Lopez.

https://bugs.webkit.org/show_bug.cgi?id=25613

Be able to use GOwnPtr for GHashTable as well. The assumption
is that the hash table has been created with g_hash_table_new_full
and has proper destruction functions.

  • wtf/GOwnPtr.cpp: (WTF::GHashTable):
  • wtf/GOwnPtr.h:

WebCore:
2009-05-26 Holger Hans Peter Freyther <[email protected]>

Reviewed by Xan Lopez.

https://bugs.webkit.org/show_bug.cgi?id=25613

Add a WebCore::Widget that can embed GtkWidget with and
without a GdkWindow. This can be used to embed any GtkWidget.

Some bits are directly copied from the Scrollbar implementation
but can not be easily shared here.

  • GNUmakefile.am:
  • platform/gtk/GtkPluginWidget.cpp: Added. (WebCore::GtkPluginWidget::GtkPluginWidget): (WebCore::GtkPluginWidget::invalidateRect): (WebCore::GtkPluginWidget::frameRectsChanged): (WebCore::GtkPluginWidget::paint):
  • platform/gtk/GtkPluginWidget.h: Added.

WebKit:
2009-05-26 Holger Hans Peter Freyther <[email protected]>

Reviewed by Xan Lopez.

https://bugs.webkit.org/show_bug.cgi?id=25613

Add a new signal called "create-plugin-widget" and emit it from
within the FrameLoaderClientGtk::createPlugin method. If a
GtkWidget gets returned it will be embedded as a WebCore::Widget
using the new GtkPluginWidget.

  • WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::createPlugin):
  • webkit/webkitwebview.cpp: (webkit_signal_accumulator_object_handled): (webkit_web_view_class_init):
  • webkitmarshal.list:
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r44174 r44183  
     12009-05-26  Holger Hans Peter Freyther  <[email protected]>
     2
     3        Reviewed by Xan Lopez.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=25613
     6
     7        Be able to use GOwnPtr for GHashTable as well. The assumption
     8        is that the hash table has been created with g_hash_table_new_full
     9        and has proper destruction functions.
     10
     11        * wtf/GOwnPtr.cpp:
     12        (WTF::GHashTable):
     13        * wtf/GOwnPtr.h:
     14
    1152009-05-26  Oliver Hunt  <[email protected]>
    216
  • trunk/JavaScriptCore/wtf/GOwnPtr.cpp

    r37660 r44183  
    5757}
    5858
     59template <> void freeOwnedGPtr<GHashTable>(GHashTable* ptr)
     60{
     61    if (ptr)
     62        g_hash_table_unref(ptr);
     63}
     64
    5965} // namespace WTF
  • trunk/JavaScriptCore/wtf/GOwnPtr.h

    r37660 r44183  
    3636    template<> void freeOwnedGPtr<GPatternSpec>(GPatternSpec*);
    3737    template<> void freeOwnedGPtr<GDir>(GDir*);
     38    template<> void freeOwnedGPtr<GHashTable>(GHashTable*);
    3839
    3940    template <typename T> class GOwnPtr : Noncopyable {
Note: See TracChangeset for help on using the changeset viewer.