Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp

Issue 2914313002: Manage DOM and string offsets separately in TextIteratorTextState (Closed)
Patch Set: Fri Jun 2 10:34:55 PDT 2017 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
index d96e3c7053135e51d25b3563abad2137289ba393..1fd0e41dd2f3dcfc29478eca35c9d4f5162c609a 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
@@ -330,7 +330,7 @@ void TextIteratorTextNodeHandler::HandleTextBox() {
// come back again to finish handling this text box; don't advance to
// the next one.
if (static_cast<unsigned>(text_state_->PositionEndOffset()) <
- text_box_end)
+ text_box_end + text_start_offset)
return;
if (behavior_.DoesNotEmitSpaceBeyondRangeEnd()) {

Powered by Google App Engine
This is Rietveld 408576698