-
timothy@apple.com authored
Don't include a separator before the "Inspect Element" context menu item when the context menu is empty. https://webkit.org/b/78312 Reviewed by Brian Weinstein. * page/ContextMenuController.cpp: (WebCore::ContextMenuController::addInspectElementItem): Check itemCount before appending the separator. * platform/gtk/ContextMenuGtk.cpp: (WebCore::ContextMenu::itemCount): Added. Implement so this builds on GTK. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
74cec7e6