forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how iteration range is passed to TextIteratorTextNodeHandler
TextIteratorTextNodeHandler used to store the full iteration range, and have comparisons between |text_node_| and |start/end_container_| scattered in the class to decide the offset range on |text_node_| from which text should be emitted. This patch changes it that: - TextIterator, when calling HandleTextNode(), compares the current text node with the start and end containers to decide the offset range on it, and pass the offset range to TextNodeHandler - TextNodeHandler no longer stores the full iteration, but only the offset range passed from TextIterator. - TextNodeHandler no longer decides the offset range by itself, but uses the passed-in offset range directly. BUG=721957 TEST=n/a; no behavioral change Review-Url: https://codereview.chromium.org/2913673004 Cr-Commit-Position: refs/heads/master@{#476336}
- Loading branch information
1 parent
3c5fcee
commit 3c26208
Showing
3 changed files
with
62 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters