Don't include a separator before the "Inspect Element" context menu item when the...
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 20:14:58 +0000 (20:14 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 20:14:58 +0000 (20:14 +0000)
commit4762c1dbbf8463166c35bcb32bdd8cd467f3e9b5
treec2e2f4f6f45d9b688a5ae1a795793f749e83ed75
parent473935377c64d47ec251268dc0118239ce3fb250
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: https://svn.webkit.org/repository/webkit/trunk@107593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/ContextMenuController.cpp
Source/WebCore/platform/gtk/ContextMenuGtk.cpp