Changeset 86071 in webkit


Ignore:
Timestamp:
May 9, 2011 11:23:24 AM (13 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

[wx] Update the popup menu code to grab the native control and initialize the
event handler properly.

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

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86070 r86071  
     12011-05-09  Robin Dunn  <robin@alldunn.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        [wx] Update the popup menu code to grab the native control and initialize the
     6        event handler properly.
     7       
     8        https://bugs.webkit.org/show_bug.cgi?id=60482
     9
     10        * platform/wx/PopupMenuWx.cpp:
     11        (WebCore::PopupMenuWx::PopupMenuWx):
     12        (WebCore::PopupMenuWx::~PopupMenuWx):
     13        (WebCore::PopupMenuWx::show):
     14
    1152011-05-09  Robin Dunn  <robin@alldunn.com>
    216
  • trunk/Source/WebCore/platform/wx/PopupMenuWx.cpp

    r68622 r86071  
    2727#include "Frame.h"
    2828#include "FrameView.h"
     29#include "HostWindow.h"
    2930#include "PopupMenuClient.h"
    3031#include "PlatformString.h"
     
    6667    , m_menu(0)
    6768{
    68     PopupMenuEventHandler m_popupHandler(client);
     69    m_popupHandler = new PopupMenuEventHandler(client);
    6970}
    7071
    7172PopupMenuWx::~PopupMenuWx()
    7273{
     74    delete m_popupHandler;
    7375    delete m_menu;
    7476}
     
    8486    delete m_menu;
    8587    ASSERT(client());
     88    ASSERT(v);
    8689
    87     wxWindow* nativeWin = v->platformWidget();
     90    wxWindow* nativeWin = v->hostWindow()->platformPageClient();
    8891
    8992    if (nativeWin) {
Note: See TracChangeset for help on using the changeset viewer.