RESOLVED FIXED 86625
[Chromium] Implement the ContextMenuItem SubMenu type
https://bugs.webkit.org/show_bug.cgi?id=86625
Summary [Chromium] Implement the ContextMenuItem SubMenu type
Alexander Pavlov (apavlov)
Reported 2012-05-16 07:18:47 PDT
This is necessary for rendering submenu items in the Web Inspector's context menu.
Attachments
Patch (10.18 KB, patch)
2012-05-16 07:43 PDT, Alexander Pavlov (apavlov)
no flags
Patch (10.16 KB, patch)
2012-05-18 03:06 PDT, Alexander Pavlov (apavlov)
no flags
Alexander Pavlov (apavlov)
Comment 1 2012-05-16 07:35:13 PDT
The bug is tracked downstream as https://code.google.com/p/chromium/issues/detail?id=128351 as it requires the Chromium non-WebKit code changes.
Alexander Pavlov (apavlov)
Comment 2 2012-05-16 07:43:04 PDT
WebKit Review Bot
Comment 3 2012-05-16 07:46:53 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Adam Barth
Comment 4 2012-05-16 19:53:50 PDT
Comment on attachment 142261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142261&action=review The API change LGTM. The rest of the patch looks plausible, but I'm not the right person to review it. > Source/WebCore/platform/chromium/ContextMenuChromium.cpp:68 > + Vector<Vector<ContextMenuItem>*> menuItemStack; Would it be better to use Vector<Vector<ContextMenuItem>&> to avoid all the conversion back and forth between references and pointers?
Alexander Pavlov (apavlov)
Comment 5 2012-05-17 04:32:56 PDT
(In reply to comment #4) > Would it be better to use Vector<Vector<ContextMenuItem>&> to avoid all the conversion back and forth between references and pointers? Does not compile for me: gives a bunch of messages like ../../third_party/WebKit/Source/WTF/wtf/Vector.h:489: error: forming pointer to reference type 'WTF::Vector<WebCore::ContextMenuItem, 0ul>&' (which refers to "typedef T* iterator;").
Adam Barth
Comment 6 2012-05-17 04:51:06 PDT
Interesting.
Kent Tamura
Comment 7 2012-05-18 02:57:15 PDT
Comment on attachment 142261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142261&action=review > Source/WebKit/chromium/public/WebMenuItemInfo.h:68 > bool hasTextDirectionOverride; > bool enabled; > bool checked; > + WebVector<WebMenuItemInfo> subMenuItems; We had better put subMenuItems before hasTextDirectionOverride to minimize padding. Other than this point, WebKit API change looks ok.
Alexander Pavlov (apavlov)
Comment 8 2012-05-18 03:06:29 PDT
WebKit Review Bot
Comment 9 2012-05-22 07:31:45 PDT
Comment on attachment 142676 [details] Patch Clearing flags on attachment: 142676 Committed r117970: <http://trac.webkit.org/changeset/117970>
WebKit Review Bot
Comment 10 2012-05-22 07:31:50 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.