Chromium Code Reviews
DescriptionRemove methods of TextIterator that take Range objects
This patch removes some methods of TextIterator which take Range objects.
A Range object assumes that two positions are in the same DOM tree and
this doesn't match 'selection for WebComponents' which will allow
positions in different DOM trees. To use TextIterator in both the DOM
tree and the composed tree, we need to eliminate methods which take
Range objects.
Now TextIterator works on a DOM tree. After commiting this patch, we are
going to templatize TextIterator to accept another traversal strategy
(ComposedTreeTraversal).
This patch is result of collaboration work with yosin@chromium.org
for selection of web components. We are going to add some features to
this class for the composed tree.
BUG=275851
TEST=n/a; No behavior changes.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192746
Patch Set 1 #
Total comments: 3
Patch Set 2 : Remove null checks for positions #Patch Set 3 : Fix WebSubstringUtil.mm #Patch Set 4 : Add assertions #Messages
Total messages: 21 (9 generated)
|