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

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

Issue 2902683005: Ensure single entry into TextIterator::HandleTextNode for each node (Closed)
Patch Set: Wed May 24 09:59:19 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
« 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 dd19dbf72b4df990c251a15ea15d49f2aff134f9..64f48c80574af97f8cddfea509ccca288a81c467 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
@@ -141,7 +141,7 @@ class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
// not always clearly control the iteration progress. Should consider removing
// the return values and control the iteration in a cleaner way.
bool HandleTextNode();
- bool HandlePreFormattedTextNode();
+ void HandlePreFormattedTextNode();
bool HandleReplacedElement();
bool HandleNonTextNode();
@@ -250,6 +250,8 @@ class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
const TextIteratorBehavior behavior_;
+ // Remember if we are in the middle of handling a pre-formatted text node.
+ bool needs_handle_pre_formatted_text_node_;
// Used when deciding text fragment created by :first-letter should be looked
// into.
bool handled_first_letter_;
« 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