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

Unified Diff: Source/core/editing/TextIterator.cpp

Issue 560653003: Fix bug in BackwardsCharacterIterator::endPosition introduced in latest change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/TextIterator.cpp
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp
index c11f0d8bc5e3f672b39f41dcf806232618fb6148..ebc655382b6b5972f74fcbe8b8b697ac2fb60e85 100644
--- a/Source/core/editing/TextIterator.cpp
+++ b/Source/core/editing/TextIterator.cpp
@@ -1733,7 +1733,7 @@ PassRefPtrWillBeRawPtr<Range> BackwardsCharacterIterator::range() const
Position BackwardsCharacterIterator::endPosition() const
{
Node* n = m_textIterator.startContainer();
- if (m_textIterator.atEnd()) {
+ if (!m_textIterator.atEnd()) {
if (m_textIterator.length() > 1)
return createLegacyEditingPosition(n, m_textIterator.endOffset() - m_runOffset);
ASSERT(!m_runOffset);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698