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

Issue 86003: Review Rquest: fix 6125 and 8686 -- cursor positioning in CRichEditCtrl (Closed)

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

Description

This CL fixes issue 6125 - [edit search engines] after hitting right ctrl+shift, can't change insertion point with the mouse and issue 8686 - RTL: Can't select RTL text from Chrome UI boxes The problem is cursor positioning and cursor selection in CRichEditCtrl in RTL layout. (cursor positioning is fine even for RTL characters in LTR layout, but cursor positioning is not working even for LTR characters in RTL layout). The fix is correctly calculation of input boundary in ClipXCoordToVisibleText(), and the fix is mostly part of Nick Carter's un-committed fix in https://svn.corp.google.com/review/chrome/desc/cb/ncarter/rtl_richedit_fixes@50605 BUG=6125 BUG=8686 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14158

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -24 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 2 chunks +36 lines, -13 lines 0 comments Download
M chrome/views/controls/text_field.cc View 1 2 3 2 chunks +35 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
xji
Hi Nick, Since this fix is mostly part of your uncommitted fix for CRichEditCtrl in ...
11 years, 8 months ago (2009-04-20 18:54:36 UTC) #1
ncarter (slow)
Looks good. http://codereview.chromium.org/86003/diff/1002/1003 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/86003/diff/1002/1003#newcode1851 Line 1851: ((pf2.wEffects & PFE_RTLPARA) == l10n_util::LEFT_TO_RIGHT); I ...
11 years, 8 months ago (2009-04-21 16:08:27 UTC) #2
xji
Hi Nick, Thanks for the quick review! Switching input between RTL/LTR language does not re-set ...
11 years, 8 months ago (2009-04-21 19:38:03 UTC) #3
ncarter (slow)
http://codereview.chromium.org/86003/diff/2002/2003 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/86003/diff/2002/2003#newcode1855 Line 1855: ltr_text_in_ltr_layout = false; I think you should have ...
11 years, 8 months ago (2009-04-21 22:23:35 UTC) #4
xji
Hi Nick, I've added "{}" in both cases in both files. PFE_RTLPARA could be set ...
11 years, 8 months ago (2009-04-21 22:46:25 UTC) #5
ncarter (slow)
LGTM. If you think unit tests are feasible, I'll happily look at those diffs too.
11 years, 8 months ago (2009-04-21 22:50:31 UTC) #6
idana
Thanks for making this change, Xiaomei. I remember that there was a DCHECK I encountered ...
11 years, 8 months ago (2009-04-21 23:00:22 UTC) #7
xji
I am using a debug build and tried to drag a selected text (RTL, LTR, ...
11 years, 8 months ago (2009-04-21 23:22:08 UTC) #8
idana
11 years, 8 months ago (2009-04-21 23:32:24 UTC) #9
LGTM

Thanks for verifying.

Powered by Google App Engine
This is Rietveld 408576698