Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Issue 147240: Review Request: display tooltip in the directionality of its element's (Closed)

Created:
11 years, 6 months ago by xji
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL fixes issue 5996: Tooltip gets direction from Chrome langauge, not element (or even page) The related webkit bug is https://bugs.webkit.org/show_bug.cgi?id=24187 After webkit passes both the title string and its directionality to its client, Chrome will force the title to be displayed in correct directionality using Unicode Control characters. BUG=http://crbug.com/5996 TEST=In both English Chrome and Hebrew Chrome 1. open the test case in http://crbug.com/5996 comment #1 2. hover over the red span, tooltip should be displayed as RTL in both English Chrome and Hebrew Chrome. 3. hover over the blue span, tooltip should be displayed as LTR in both English Chrome and Hebrew Chrome. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21266

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M webkit/glue/chrome_client_impl.h View 1 chunk +1 line, -1 line 1 comment Download
M webkit/glue/chrome_client_impl.cc View 2 chunks +12 lines, -1 line 3 comments Download

Messages

Total messages: 9 (0 generated)
xji
This CL depends on webkit patch for issue 24187: https://bugs.webkit.org/show_bug.cgi?id=24187 try test wont work until ...
11 years, 5 months ago (2009-07-14 19:35:00 UTC) #1
xji
this is a kindly reminder.... (The webkit changes was pulled in) Thanks, Xiaomei
11 years, 5 months ago (2009-07-18 00:45:17 UTC) #2
xji
11 years, 5 months ago (2009-07-20 16:35:59 UTC) #3
idana
http://codereview.chromium.org/147240/diff/1/3 File webkit/glue/chrome_client_impl.cc (right): http://codereview.chromium.org/147240/diff/1/3#newcode516 Line 516: tooltip_text_as_wstring.push_back(WebCore::popDirectionalFormatting); Are you sure that it is safe ...
11 years, 5 months ago (2009-07-20 20:50:10 UTC) #4
jungshik at Google
http://codereview.chromium.org/147240/diff/1/3 File webkit/glue/chrome_client_impl.cc (right): http://codereview.chromium.org/147240/diff/1/3#newcode516 Line 516: tooltip_text_as_wstring.push_back(WebCore::popDirectionalFormatting); On 2009/07/20 20:50:10, idana wrote: > Are ...
11 years, 5 months ago (2009-07-20 21:18:33 UTC) #5
xji
http://codereview.chromium.org/147240/diff/1/3 File webkit/glue/chrome_client_impl.cc (right): http://codereview.chromium.org/147240/diff/1/3#newcode516 Line 516: tooltip_text_as_wstring.push_back(WebCore::popDirectionalFormatting); On 2009/07/20 21:18:33, Jungshik Shin wrote: > ...
11 years, 5 months ago (2009-07-20 23:51:04 UTC) #6
idana
LGTM (with one more nit) Thanks for testing that the change works well when the ...
11 years, 5 months ago (2009-07-21 00:45:26 UTC) #7
jungshik at Google
lgtm On 2009/07/20 23:51:04, xji wrote: > > BTW, is this code cross-platform? If so, ...
11 years, 5 months ago (2009-07-21 05:57:32 UTC) #8
xji
11 years, 5 months ago (2009-07-22 05:54:42 UTC) #9
Thanks for testing it in Linux.
I tried in Mac and the patch works as expected.
I will check it in.

On 2009/07/21 05:57:32, Jungshik Shin wrote:
> lgtm
> 
> On 2009/07/20 23:51:04, xji wrote:
> 
> > > BTW, is this code cross-platform? If so, we have to check on Mac and
Linux,
> > too
> > > although it's likely to be ok there. 
> 
> I've tried a slightly more challenging case than described in comment #1 of
> issue 5996 ( http://i18nl10n.com/chrome/tooltip_dir.html )
> and it works fine on Linux with your CL applied.

Powered by Google App Engine
This is Rietveld 408576698