DescriptionBiDiLineIterator: Remove "url" parameter.
This parameter is always passed "false", and it doesn't do anything
sensible if you pass "true". It purports to be processing bidi text for
a URL, but it does not do anything of the sort.
Specifically, if the overall text direction of the string is RTL, it
tells ICU to use the UBIDI_REORDER_RUNS_ONLY algorithm, which disables
the bidi algorithm and places all strong characters (LTR and RTL) at
Level 0. This is not designed to produce a display ordering and has
nothing to do with the formatting requirements for a URL. It might have
made sense back when BiDiLineIterator was solely used by
AutocompleteResultView in 2008 (it did some sort of post processing on
the reversed runs), but I don't want this misleading parameter to stay
around now.
BUG=351639
Committed: https://crrev.com/8b2bdeaa0e5bc7dbb50017bd0e6ee1c6ecc22dee
Cr-Commit-Position: refs/heads/master@{#333687}
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|