Set the menu item identifier for all menu items
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 19:36:56 +0000 (19:36 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 19:36:56 +0000 (19:36 +0000)
         This allows WebKit clients to distinguish between submenus in the
         context menu.

         Reviewed by Darin.

         No test possible.

         * platform/win/ContextMenuItemWin.cpp:
         (WebCore::ContextMenuItem::ContextMenuItem):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28444 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/ContextMenuItemWin.cpp

index 3c288b1..88a6adc 100644 (file)
@@ -1,3 +1,17 @@
+2007-12-05  Adam Roben  <aroben@apple.com>
+
+        Set the menu item identifier for all menu items
+
+        This allows WebKit clients to distinguish between submenus in the
+        context menu.
+
+        Reviewed by Darin.
+
+        No test possible.
+
+        * platform/win/ContextMenuItemWin.cpp:
+        (WebCore::ContextMenuItem::ContextMenuItem):
+
 2007-12-05  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Darin Adler.
index 75d8a2b..bd10c91 100644 (file)
@@ -76,9 +76,7 @@ ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction act
         m_platformDescription->fMask |= MIIM_STRING | MIIM_ID;
 
     m_platformDescription->fType = MFT_STRING;
-    
-    if (type == ActionType)
-        m_platformDescription->wID = action;
+    m_platformDescription->wID = action;
     
     String t = title;
     m_platformDescription->cch = t.length();