DescriptionThe length of a TextIterator containing replaced element is at least 1
When a TextIterator is created for a range that contains a replaced
element then one ',' (comma) will surely be emitted. This way the
length of the created TextIterator will be at least 1. In spite of
this, the WebCore::PlainTextRange::createRangeFor method assumes that
the length of the iterator only can be one if that one character is a
newline. The patch fixes this wrong assumption.
R=tkent@chromium.org
BUG=385630
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177130
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressing yutak's review #Patch Set 3 : Fix dummy whitespace issue. #
Total comments: 3
Patch Set 4 : Updated patch #
Total comments: 3
Patch Set 5 : Fix style issues. #
Messages
Total messages: 14 (0 generated)
|