DescriptionFix out-of-date offset in selection range code.
Code in Range::insertNode assumes that the start offset of the selection
range within its container does not change across a call to insertBefore
on the container, which is not true. This patch recomputes the start
offset when it is used after the insertBefore call.
R=ojan@chromium.org, infernosec, ojan
BUG=299993
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158859
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158989
Patch Set 1 #
Total comments: 1
Patch Set 2 : Updated test #Patch Set 3 : Test with description. #
Total comments: 10
Patch Set 4 : Fixed the test. Ready to commit. #
Total comments: 1
Patch Set 5 : Better test. #
Messages
Total messages: 14 (0 generated)
|