DescriptionUnicode bidi mirroring characters are not correctly mirrored in textfield and omnibox (which use CRichEditCtrl) while *inputting*.
Since bidi mirroring characters are correctly mirrored when rendering the whole text, fix it by re-rendering the whole text every time the text changes.
NOTE: this change will mess up the undo queue. The continuous keystroke wont be treated as one undo event.
Every single keystroke is treated as a undo state.
Using the following as example:
1. paste string "abcd " into find-in-page;
2. type in 'e', 'f', and ' '.
3. paste string "xyz".
When undo, the string sequence will be:
"abcd ef xyz" => "abcd ef " ==> "abcd ef" ==> "abcd e" ==> "abcd " =>"".
Without the change, the string sequence is:
"abcd ef xyz" => "abcd ef " => "abcd " =>"".
BUG=46298
TEST=follow the steps described in the bug.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49811
Patch Set 1 #
Total comments: 5
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #
Total comments: 1
Patch Set 4 : '' #
Messages
Total messages: 10 (0 generated)
|