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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp

Issue 2909923005: Expand TextCheckingParagraph::OffsetTo() into SelectionController::MarkAndReplaceFor() (Closed)
Patch Set: 2017-05-30T18:54:14 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 | « third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
index 6f8f18d3d88c5fd7d0b911fe98728426c24e8f12..b9aeb06ced4a1f483c696b37e150354143c7a1be 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
@@ -99,11 +99,6 @@ EphemeralRange TextCheckingParagraph::Subrange(int character_offset,
character_count);
}
-int TextCheckingParagraph::OffsetTo(const Position& position) const {
- DCHECK(checking_range_.IsNotNull());
- return TextIterator::RangeLength(OffsetAsRange().StartPosition(), position);
-}
-
bool TextCheckingParagraph::IsEmpty() const {
// Both predicates should have same result, but we check both just to be sure.
// We need to investigate to remove this redundancy.
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698