Bug 48497

Summary: Avoid overlapping label text in autofill popup with icon
Product: WebKit Reporter: Ilya Sherman <isherman>
Component: New BugsAssignee: Ilya Sherman <isherman>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dglazkov, fishd, isherman, jcivelli, jorlow, krit, rniwa, tkent, webkit.review.bot, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch, addressing Jay's comments
none
Patch
none
Patch
none
Patch none

Ilya Sherman
Reported 2010-10-27 20:31:10 PDT
Avoid overlapping label text in autocomplete popup with icon
Attachments
Patch (3.56 KB, patch)
2010-10-27 20:35 PDT, Ilya Sherman
no flags
Patch, addressing Jay's comments (4.10 KB, patch)
2010-10-28 17:52 PDT, Ilya Sherman
no flags
Patch (4.07 KB, patch)
2010-11-01 11:41 PDT, Ilya Sherman
no flags
Patch (4.00 KB, patch)
2010-11-01 11:46 PDT, Ilya Sherman
no flags
Patch (3.96 KB, patch)
2010-11-02 09:01 PDT, Ilya Sherman
no flags
Ilya Sherman
Comment 1 2010-10-27 20:35:21 PDT
Ilya Sherman
Comment 2 2010-10-27 20:40:02 PDT
paintRow() probably also needs to updated to take the icon width into account for the |restrictWidthOfListBox| case. It's not entirely obvious to me how that should work -- should the label take precedence to the icon, or vice versa? If there are multiple rows and only some of the rows have overflow, what alignment do we want across the rows? This could probably also use a layout test, but I couldn't find any existing layout tests for these functions. Could someone please point me in the right direction?
Ilya Sherman
Comment 3 2010-10-27 20:43:17 PDT
I should have mentioned -- this corresponds to Chromium bug 60096: http://code.google.com/p/chromium/issues/detail?id=60096
Jay Civelli
Comment 4 2010-10-28 09:52:36 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=72134&action=review > WebCore/platform/chromium/PopupMenuChromium.cpp:1272 > + if (width > 0) 4 space indent > WebCore/platform/chromium/PopupMenuChromium.cpp:1277 > + We should probably take into account the icon when computing the row height.
Ilya Sherman
Comment 5 2010-10-28 17:52:04 PDT
Created attachment 72274 [details] Patch, addressing Jay's comments
Ilya Sherman
Comment 6 2010-10-28 18:03:50 PDT
Comment on attachment 72274 [details] Patch, addressing Jay's comments New patch up, addressing Jay's review comments
WebKit Review Bot
Comment 7 2010-10-29 08:16:40 PDT
Jay Civelli
Comment 8 2010-10-29 08:36:48 PDT
I am not a reviewer but R+ for me.
Kent Tamura
Comment 9 2010-11-01 05:46:57 PDT
Comment on attachment 72274 [details] Patch, addressing Jay's comments View in context: https://bugs.webkit.org/attachment.cgi?id=72274&action=review > WebCore/ChangeLog:741 > +2010-10-27 Ilya Sherman <isherman@chromium.org> New ChangeLog entry should be at the beginning of the file. > WebCore/platform/chromium/PopupMenuChromium.cpp:1278 > + width += kLabelToIconPadding; We don't use "k" prefix in WebKit style. I understand this symbol is not introduced by this patch. So you don't need to address this issue for now.
Ilya Sherman
Comment 10 2010-11-01 11:41:15 PDT
Created attachment 72531 [details] Patch I think I uploaded an old version of the patch somehow last time; hoping things work better this time
Ilya Sherman
Comment 11 2010-11-01 11:46:12 PDT
Created attachment 72532 [details] Patch Third time's the charm?
Kent Tamura
Comment 12 2010-11-01 14:12:22 PDT
Comment on attachment 72532 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=72532&action=review > WebCore/ChangeLog:9 > + No new tests. (OOPS!) Remove this line please.
Ilya Sherman
Comment 13 2010-11-01 15:00:42 PDT
(In reply to comment #12) > (From update of attachment 72532 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=72532&action=review > > > WebCore/ChangeLog:9 > > + No new tests. (OOPS!) > > Remove this line please. Does that mean this patch doesn't need any tests? I'd figured that we want tests, but wasn't sure where to add them and what to use as a starting point...
Kent Tamura
Comment 14 2010-11-01 16:32:20 PDT
Comment on attachment 72532 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=72532&action=review >>> WebCore/ChangeLog:9 >>> + No new tests. (OOPS!) >> >> Remove this line please. > > Does that mean this patch doesn't need any tests? I'd figured that we want tests, but wasn't sure where to add them and what to use as a starting point... Of course we should have tests as possible. I meant we should remove (OOPS!) except "Reviewed by" line. Commit-queue rejects a patch with (OOPS!). We already have WebKit/chromium/tests/PopupMenuTest.cpp, but I think it's difficult to add a test for this change in WebKit. So I think it's ok to have no tests.
Ilya Sherman
Comment 15 2010-11-02 09:01:03 PDT
Ilya Sherman
Comment 16 2010-11-02 09:02:29 PDT
(In reply to comment #14) > (From update of attachment 72532 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=72532&action=review > > >>> WebCore/ChangeLog:9 > >>> + No new tests. (OOPS!) > >> > >> Remove this line please. > > > > Does that mean this patch doesn't need any tests? I'd figured that we want tests, but wasn't sure where to add them and what to use as a starting point... > > Of course we should have tests as possible. I meant we should remove (OOPS!) except "Reviewed by" line. Commit-queue rejects a patch with (OOPS!). > > We already have WebKit/chromium/tests/PopupMenuTest.cpp, but I think it's difficult to add a test for this change in WebKit. So I think it's ok to have no tests. Ok, removed.
WebKit Commit Bot
Comment 17 2010-11-02 17:25:24 PDT
Comment on attachment 72675 [details] Patch Clearing flags on attachment: 72675 Committed r71191: <http://trac.webkit.org/changeset/71191>
WebKit Commit Bot
Comment 18 2010-11-02 17:25:31 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.