UNCONFIRMED Bug 81883
[WK2] Add style support for WebPopUpItem
https://bugs.webkit.org/show_bug.cgi?id=81883
Summary [WK2] Add style support for WebPopUpItem
Antaryami Pandia (apandia)
Reported 2012-03-22 02:03:30 PDT
While working on issue "https://bugs.webkit.org/show_bug.cgi?id=81882" found that the style is not yet implemented for WebPopUpItem.
Attachments
WIP (10.96 KB, patch)
2012-03-22 02:07 PDT, Antaryami Pandia (apandia)
no flags
Patch. (19.11 KB, patch)
2012-03-27 03:01 PDT, Antaryami Pandia (apandia)
buildbot: commit-queue-
Modified patch. (20.84 KB, patch)
2012-03-28 00:25 PDT, Antaryami Pandia (apandia)
no flags
Antaryami Pandia (apandia)
Comment 1 2012-03-22 02:07:52 PDT
Created attachment 133208 [details] WIP Attaching the WIP patch to get some feedback.The approach I am taking is:- Adding a new struct "WebPopupItemStyle" to hold the style information and then passing it to WebPopupItem. Wanted the below feedback before proceeding further:- Is the WIP approach is Ok or should I add all style info to the WebPopupItem itself.
Antaryami Pandia (apandia)
Comment 2 2012-03-26 04:22:21 PDT
Hi Darin, Please provide some feedback.
Antaryami Pandia (apandia)
Comment 3 2012-03-27 03:01:52 PDT
Build Bot
Comment 4 2012-03-27 04:34:35 PDT
Antaryami Pandia (apandia)
Comment 5 2012-03-27 04:53:42 PDT
Comment on attachment 134011 [details] Patch. Mac throws below compilation error:- WebPopupMenuProxyMac.mm:73: error: 'const struct WebKit::WebPopupItem' has no member named 'm_textDirection' WebPopupMenuProxyMac.mm:80: error: 'const struct WebKit::WebPopupItem' has no member named 'm_hasTextDirectionOverride' I will resolve these errors in a new patch along with review comments provided by you. Marking the "r?", to get review comments.
Alexis Menard (darktears)
Comment 6 2012-03-27 13:15:22 PDT
Comment on attachment 134011 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=134011&action=review r- to me. > Source/WebKit2/GNUmakefile.am:441 > + Source/WebKit2/Shared/WebPopupItemStyle.cpp \ Indentation issue. > Source/WebKit2/Shared/WebPopupItem.cpp:-33 > -using namespace WebCore; You need to keep that. > Source/WebKit2/Shared/WebPopupItemStyle.h:45 > + WebPopupItemStyle(bool visible, bool isDisplayNone, WebCore::TextDirection, bool hasTextDirectionOverride); The names of the parameters are not adding anything in the .h file, remove them > Source/WebKit2/WebProcess/WebCoreSupport/WebPopupMenu.cpp:92 > + WebPopupItemStyle style = WebPopupItemStyle(itemStyle.isVisible(), itemStyle.isDisplayNone(), itemStyle.textDirection(), itemStyle.hasTextDirectionOverride()); Lot of copies no? The affection and then in WebPopupItem constructor it will copy. Could you save one at least? WebPopupItemStyle style(....).
Antaryami Pandia (apandia)
Comment 7 2012-03-28 00:25:13 PDT
Created attachment 134228 [details] Modified patch.
Antaryami Pandia (apandia)
Comment 8 2012-04-03 02:56:08 PDT
@anders,sam request you to review the patch.
Antaryami Pandia (apandia)
Comment 9 2012-07-18 23:16:49 PDT
The patch is pending since long. It's not a big change. Request some reviewer to review the patch.
Anders Carlsson
Comment 10 2014-02-05 10:52:31 PST
Comment on attachment 134228 [details] Modified patch. Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Note You need to log in before you can comment on or make changes to this bug.