Open Bug 1496998 Opened 6 years ago Updated 2 years ago

Improve nsFileControlFrame::CropTextToWidth for bidi filenames

Categories

(Core :: Layout: Form Controls, enhancement, P4)

enhancement

Tracking

()

Tracking Status
firefox64 --- affected

People

(Reporter: MatsPalmgren_bugz, Unassigned)

Details

Follow-up from bug 1495153 comment 40. nsFileControlFrame::CropTextToWidth currently measures the left and right parts of the string separately. It would probably give more precise results to measure: nsLayoutUtils::AppUnitWidthOfStringBidi(leftString + kEllipsis + rightString) for each step instead.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.