[Editing] Make loop condition in insertOrderedList::doApply strict.
The while loop starting from L163 in insertOrderedList::doApply uses two loop variables, |startOfCurrentParagrap| and |startOfLastParagraph|. They are of Position type and modified in loop. Old implementation can go into infinite loop if |startOfCurrentParagrap| skips over |startOfLastParagraph|. Thus this CL adds condition that |startOfCurrentParagrap| should be before |startOfLastParagraph|. TEST=LayoutTests/editing/execCommand/execCommand/insert-list-infinite-loop2.html Review URL: https://codereview.chromium.org/1285103002 git-svn-id: svn://svn.chromium.org/blink/trunk@200956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment