Changeset 65497 in webkit


Ignore:
Timestamp:
Aug 17, 2010 5:23:00 AM (14 years ago)
Author:
xan@webkit.org
Message:

2010-08-17 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

[GTK] Fix wrapping of core Events in the bindings
https://bugs.webkit.org/show_bug.cgi?id=44095

Return the proper GObject type instead of hardcoding
WebKitDOMEvent for all Event types.

  • bindings/gobject/GObjectEventListener.cpp: (WebCore::GObjectEventListener::handleEvent):
  • bindings/gobject/WebKitDOMBinding.cpp: (WebKit::kit):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65496 r65497  
     12010-08-17  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        [GTK] Fix wrapping of core Events in the bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=44095
     7
     8        Return the proper GObject type instead of hardcoding
     9        WebKitDOMEvent for all Event types.
     10
     11        * bindings/gobject/GObjectEventListener.cpp:
     12        (WebCore::GObjectEventListener::handleEvent):
     13        * bindings/gobject/WebKitDOMBinding.cpp:
     14        (WebKit::kit):
     15
    1162010-08-17  Xan Lopez  <xlopez@igalia.com>
    217
  • trunk/WebCore/bindings/gobject/GObjectEventListener.cpp

    r60229 r65497  
    2222#include "Event.h"
    2323#include "EventListener.h"
     24#include "webkit/WebKitDOMEvent.h"
    2425#include "webkit/WebKitDOMEventPrivate.h"
    2526#include <wtf/HashMap.h>
     
    3132{
    3233    gboolean handled = FALSE;
    33     WebKitDOMEvent* gobjectEvent = WebKit::wrapEvent(event);
     34    WebKitDOMEvent* gobjectEvent = WEBKIT_DOM_EVENT(WebKit::kit(event));
    3435    g_signal_emit_by_name(m_object, m_signalName.utf8().data(), gobjectEvent, &handled);
    3536}
  • trunk/WebCore/bindings/gobject/WebKitDOMBinding.cpp

    r64758 r65497  
    3333#include "WebKitDOMDOMWindowPrivate.h"
    3434#include "WebKitDOMElementPrivate.h"
     35#include "WebKitDOMEventPrivate.h"
    3536#include "WebKitDOMNode.h"
    3637#include "WebKitDOMNodePrivate.h"
     
    141142        wrappedEvent = wrapUIEvent(static_cast<UIEvent*>(event));
    142143    else
    143         wrappedEvent = 0;
     144        wrappedEvent = wrapEvent(event);
    144145
    145146    return DOMObjectCache::put(event, wrappedEvent);
Note: See TracChangeset for help on using the changeset viewer.