DescriptionImplement eliding/truncating at end in RenderText
patch from issue 112063003
The eliding is determined using binary search similar to the ElideText
in ui/gfx/text_elider.cc.
The mixed LTR-RTL handling for ellipsis is done using LTR/RTL markers.
There is no other way of rendering the ellipsis with the directionality
of preceding strong-directional characters. Previous scheme worked
because it rendered LTR and RTL sub-strings as different RenderText
instances.
Added helper method to be able to determine directionality of the
trailing text.
Made StringSlicer used by text_elider.cc public to be shared by RenderText.
Additional Fix:
- Call UpdateLayoutText from SetDisplayRect.
- Disable erratic tests on versions of windows older than Vista.
BUG=327833
TEST=ui_unittests,base_unittests
R=msw@chromium.org
TBR=jshin@chromium.org,pkasting@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241000
Patch Set 1 : Fixed patch #Patch Set 2 : Original patch #Patch Set 3 : Fixed patch #
Total comments: 8
Patch Set 4 : Addressed comments #
Total comments: 14
Messages
Total messages: 24 (0 generated)
|