Do not break lines when width is not specified.
In case SetAllowCharacterBreak(true) is specified but width is not specified yet, nobody can stop gfx::ElideRectangleText() to wrap the text at very narrow width. But when the width is not specified, the ideal lines is expected (so that the label can be layouted based on the size). BUG=469559 R=sky@chromium.org TEST=the new test case covers Review URL: https://codereview.chromium.org/1029593004 Cr-Commit-Position: refs/heads/master@{#321854}
Showing
Please register or sign in to comment