Changeset 71099 in webkit


Ignore:
Timestamp:
Nov 1, 2010, 9:34:34 PM (15 years ago)
Author:
Martin Robinson
Message:

2010-11-01 Martin Robinson <mrobinson@igalia.com>

Reviewed by Daniel Bates.

[GTK] PopupMenuGtk has a very confusing if-else block
https://bugs.webkit.org/show_bug.cgi?id=48816

Small code cleanup for PopupMenuGtk.

  • platform/gtk/PopupMenuGtk.cpp: (WebCore::PopupMenuGtk::show):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71098 r71099  
     12010-11-01  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Daniel Bates.
     4
     5        [GTK] PopupMenuGtk has a very confusing if-else block
     6        https://bugs.webkit.org/show_bug.cgi?id=48816
     7
     8        Small code cleanup for PopupMenuGtk.
     9
     10        * platform/gtk/PopupMenuGtk.cpp:
     11        (WebCore::PopupMenuGtk::show):
     12
    1132010-11-01  Adam Barth  <abarth@webkit.org>
    214
  • trunk/WebCore/platform/gtk/PopupMenuGtk.cpp

    r69285 r71099  
    9898    GList* children = gtk_container_get_children(GTK_CONTAINER(m_popup.get()));
    9999    GList* p = children;
    100     if (size)
     100    if (size) {
    101101        for (int i = 0; i < size; i++) {
    102102            if (i > index)
     
    113113
    114114            p = g_list_next(p);
    115         } else
    116             // Center vertically the empty popup in the combo box area
    117             m_menuPosition.setY(m_menuPosition.y() - rect.height() / 2);
     115        }
     116    } else {
     117        // Center vertically the empty popup in the combo box area
     118        m_menuPosition.setY(m_menuPosition.y() - rect.height() / 2);
     119    }
    118120
    119121    g_list_free(children);
Note: See TracChangeset for help on using the changeset viewer.