DescriptionAdd a constructor to TextIterator taking two Positions as iteration range.
This refactoring patch is a step towards fixing a bug in the find-in-page
functionality. To fix the issue, we need a way to pass a document range
which may span multiple TreeScopes to findPlainText() (and eventually
TextIterator). Currently it takes a Range, which does not support this kind
of document ranges.
This patch introduces an overloaded constructor of TextIterator taking
two Positions instead of a Range. The core routine of the old constructor
is moved to a private member function so that it can be shared with
different constructors.
This patch also moves some obvious initialization of member variables in
the constructor body to the initializer list.
No behavior change expected.
BUG=353430
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170002
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|