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

Unified Diff: Source/core/editing/spellcheck/TextCheckingHelper.h

Issue 1333813003: Restrict visibility of internal TextCheckingParagraph predicates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/core/editing/spellcheck/SpellChecker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/spellcheck/TextCheckingHelper.h
diff --git a/Source/core/editing/spellcheck/TextCheckingHelper.h b/Source/core/editing/spellcheck/TextCheckingHelper.h
index 12647a20cd15f269f39b98ebfb78a6a66d96df59..9ff06efc120d6f4d5c326ad92372a0a68603528c 100644
--- a/Source/core/editing/spellcheck/TextCheckingHelper.h
+++ b/Source/core/editing/spellcheck/TextCheckingHelper.h
@@ -53,8 +53,6 @@ public:
UChar textCharAt(int index) const { return text()[static_cast<unsigned>(index)]; }
bool isEmpty() const;
- bool isTextEmpty() const { return text().isEmpty(); }
- bool isRangeEmpty() const { return checkingStart() >= checkingEnd(); }
int checkingStart() const;
int checkingEnd() const;
@@ -68,6 +66,9 @@ private:
void invalidateParagraphRangeValues();
PassRefPtrWillBeRawPtr<Range> offsetAsRange() const;
+ bool isTextEmpty() const { return text().isEmpty(); }
+ bool isRangeEmpty() const { return checkingStart() >= checkingEnd(); }
+
RefPtrWillBeMember<Range> m_checkingRange;
mutable RefPtrWillBeMember<Range> m_paragraphRange;
mutable RefPtrWillBeMember<Range> m_offsetAsRange;
« no previous file with comments | « Source/core/editing/spellcheck/SpellChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698