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

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

Issue 2888463002: Refactor some first-letter handling code in TextIterator (Closed)
Patch Set: 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 4438f9e511726164d76388d4c1c451ea0b8cf51e..ec92d405e2f2857fc4a5548666bfacbb3dc29005 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
@@ -139,6 +139,9 @@ class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
bool HandleNonTextNode();
void HandleTextBox();
void HandleTextNodeFirstLetter(LayoutTextFragment*);
+ bool ShouldHandleFirstLetter(const LayoutText&) const;
+ bool ShouldProceedToRemainingText() const;
+ void ProceedToRemainingText();
// Helper function during initialization. Returns true if the start position
// is in a text node with first-letter, in which case it also sets up related
// parameters. Returns false otherwise.
« 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