Changeset 162768 in webkit


Ignore:
Timestamp:
Jan 25, 2014 10:48:02 AM (10 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Remove null check for WebPopupMenuProxy::Client in WebPopupMenuProxyGtk::showPopupMenu
https://bugs.webkit.org/show_bug.cgi?id=107036

Reviewed by Andreas Kling.

  • UIProcess/gtk/WebPopupMenuProxyGtk.cpp:

(WebKit::WebPopupMenuProxyGtk::showPopupMenu): Don't perform an early return
if the client is not available - it always should be. The client is set to null
only when the proxy is invalidated. This happens immediately after this function
returns, either with the popup being forced to close or being closed by the user
with possibly an item being chosen. Rather than the early return, use an ASSERT.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162758 r162768  
     12014-01-25  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK] Remove null check for WebPopupMenuProxy::Client in WebPopupMenuProxyGtk::showPopupMenu
     4        https://bugs.webkit.org/show_bug.cgi?id=107036
     5
     6        Reviewed by Andreas Kling.
     7
     8        * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
     9        (WebKit::WebPopupMenuProxyGtk::showPopupMenu): Don't perform an early return
     10        if the client is not available - it always should be. The client is set to null
     11        only when the proxy is invalidated. This happens immediately after this function
     12        returns, either with the popup being forced to close or being closed by the user
     13        with possibly an item being chosen. Rather than the early return, use an ASSERT.
     14
    1152014-01-24  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp

    r162599 r162768  
    106106    g_signal_handler_disconnect(m_popup->platformMenu(), unmapHandler);
    107107
    108     if (!m_client)
    109         return;
    110 
     108    ASSERT(m_client);
    111109    m_client->valueChangedForPopupMenu(this, m_activeItem);
    112110}
Note: See TracChangeset for help on using the changeset viewer.