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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIterator.h

Issue 2131103002: Ensure that TextIterator::m_pastEndNode is not skipped in advance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revise unit test Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/TextIterator.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
index 5845bb3464dce3f15e1168721bdd949de44878e8..b875f3eef525f6c902a04168dd801b220d12946f 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
@@ -168,6 +168,9 @@ private:
int m_startOffset;
Member<Node> m_endContainer;
int m_endOffset;
+ // |m_endNode| stores |Strategy::childAt(*m_endContainer, m_endOffset - 1)|,
+ // if it exists, or |nullptr| otherwise.
+ Member<Node> m_endNode;
Member<Node> m_pastEndNode;
// Used when there is still some pending text from the current node; when these
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698