Description[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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200956
Patch Set 1 #Patch Set 2 : update #
Total comments: 6
Patch Set 3 : nit pick #
Messages
Total messages: 13 (4 generated)
|