createPlainText(): avoid a 32k buffer allocation for empty ranges.
The pre-allocation of the StringBuilder is redundant if the range is empty, hence avoid. While here, simplify empty string builder testing also. R=yosin BUG= Review URL: https://codereview.chromium.org/1317593003 git-svn-id: svn://svn.chromium.org/blink/trunk@201212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment