DescriptionThis is a reapply of
http://src.chromium.org/viewvc/chrome?view=rev&revision=102006
fix know issues in RenderText
1. add tests.
2. change SelectWord() to use BreakIterator, so it works for Chinese and Complex script.
3. DELETE/ReplaceChar delete/replace a whole grapheme. ReplaceTextInternal should only replace one grapheme when there is no selection.
4. pointing to position outside of text returns HOME/END position.
5. based on Chrome Linux omnibox and gedit, given
"abc| def", double click should select " " instead of "abc". Change test expectation.
BUG=90426
TEST=compile with touchui=1 test omnibox. run views_unittests.NativeTextfieldViewsTest/TextfieldViewsModelTest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102160
Patch Set 1 #
Total comments: 66
Patch Set 2 : '' #Patch Set 3 : aupdate RenderTextWin. update test for Win platform. upload RenderTextTest that was missed #
Total comments: 27
Patch Set 4 : '' #Patch Set 5 : '' #Patch Set 6 : fix Win test failure #
Total comments: 18
Patch Set 7 : address comments #
Total comments: 1
Patch Set 8 : fix linux_clang compilation #Patch Set 9 : fix a capitalization in break_iterator.h #
Messages
Total messages: 13 (0 generated)
|