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

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

Issue 2341053002: Mark the createVisiblePosition overloads as deprecated (Closed)
Patch Set: minor revision Created 4 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
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 e011035f8cb15deb26915b7fdd3e659f82ec6f2c..1f1d268d7763e1cbb0e486b763d6d9e495e3c865 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp
@@ -35,12 +35,12 @@ namespace blink {
static EphemeralRange expandToParagraphBoundary(const EphemeralRange& range)
{
- const VisiblePosition& start = createVisiblePosition(range.startPosition());
+ const VisiblePosition& start = createVisiblePositionDeprecated(range.startPosition());
DCHECK(start.isNotNull()) << range.startPosition();
const Position& paragraphStart = startOfParagraph(start).deepEquivalent();
DCHECK(paragraphStart.isNotNull()) << range.startPosition();
- const VisiblePosition& end = createVisiblePosition(range.endPosition());
+ const VisiblePosition& end = createVisiblePositionDeprecated(range.endPosition());
DCHECK(end.isNotNull()) << range.endPosition();
const Position& paragraphEnd = endOfParagraph(end).deepEquivalent();
DCHECK(paragraphEnd.isNotNull()) << range.endPosition();
@@ -88,7 +88,7 @@ TextCheckingParagraph::~TextCheckingParagraph()
void TextCheckingParagraph::expandRangeToNextEnd()
{
DCHECK(m_checkingRange.isNotNull());
- setParagraphRange(EphemeralRange(paragraphRange().startPosition(), endOfParagraph(startOfNextParagraph(createVisiblePosition(paragraphRange().startPosition()))).deepEquivalent()));
+ setParagraphRange(EphemeralRange(paragraphRange().startPosition(), endOfParagraph(startOfNextParagraph(createVisiblePositionDeprecated(paragraphRange().startPosition()))).deepEquivalent()));
invalidateParagraphRangeValues();
}

Powered by Google App Engine
This is Rietveld 408576698