DescriptionFullscreen Exit Bubble should not elide its label.
When drawing a Label it is important to adjust for
RTL not just when drawing, but also when computing
the size of the string.
Before this change, we'd compute using Font::GetStringWidth
(which uses ::GetTextExtentPoint32 *without* adjusting
the string for RTL) and draw using DoDrawText (which
adjusts for RTL and then draws using ::DrawText).
After this change, we now use SizeStringInt for
computing (so we now compute and draw using the
same ::DrawText function, thereby adjusting the
string for RTL in both cases).
BUG=17949
TEST=Run chrome with --lang=he, press F11 and
the string in the bubble at the top should not
be elided.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30863
Patch Set 1 #
Total comments: 3
Patch Set 2 : '' #
Total comments: 1
Patch Set 3 : '' #Patch Set 4 : '' #Messages
Total messages: 7 (0 generated)
|