Changeset 71099 in webkit
- Timestamp:
- Nov 1, 2010, 9:34:34 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r71098 r71099 1 2010-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 1 13 2010-11-01 Adam Barth <abarth@webkit.org> 2 14 -
trunk/WebCore/platform/gtk/PopupMenuGtk.cpp
r69285 r71099 98 98 GList* children = gtk_container_get_children(GTK_CONTAINER(m_popup.get())); 99 99 GList* p = children; 100 if (size) 100 if (size) { 101 101 for (int i = 0; i < size; i++) { 102 102 if (i > index) … … 113 113 114 114 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 } 118 120 119 121 g_list_free(children);
Note:
See TracChangeset
for help on using the changeset viewer.