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

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

Issue 2904813003: Wrap text node handling code in TextIterator into wrapper functions (Closed)
Patch Set: Thu May 25 16:06:45 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 2b5d2b9b98b0b267a6696f822b2af96efaed191d..473874dbe7306760613239d5789098274b722193 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
@@ -150,6 +150,14 @@ class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
bool ShouldHandleFirstLetter(const LayoutText&) const;
bool ShouldProceedToRemainingText() const;
void ProceedToRemainingText();
+ void ResetCollapsedWhiteSpaceFixup();
+
+ // Returns true if more text is emitted without traversing to the next node.
+ bool HandleRemainingTextRuns();
+
+ // Returns true if a leading white space is emitted before a replaced element.
+ bool FixLeadingWhiteSpaceForReplacedElement(Node* parent);
+
void SpliceBuffer(UChar,
Node* text_node,
Node* offset_base_node,
« 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