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

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

Issue 1317053004: Make VisiblePosition constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-02T12:44:47 Rebase 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/commands/TypingCommand.cpp ('k') | Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIterator.cpp
diff --git a/Source/core/editing/iterators/TextIterator.cpp b/Source/core/editing/iterators/TextIterator.cpp
index 017f40923f6673800e119b81a2df474b6d0d0404..c0bd614b8a7901707db2e64fdb84caeddea766f7 100644
--- a/Source/core/editing/iterators/TextIterator.cpp
+++ b/Source/core/editing/iterators/TextIterator.cpp
@@ -881,8 +881,8 @@ bool TextIteratorAlgorithm<Strategy>::shouldRepresentNodeOffsetZero()
// and in that case we'll get null. We don't want to put in newlines at the start in that case.
// The currPos.isNotNull() check is needed because positions in non-HTML content
// (like SVG) do not have visible positions, and we don't want to emit for them either.
- VisiblePosition startPos = VisiblePosition(Position(m_startContainer, m_startOffset));
- VisiblePosition currPos = VisiblePosition(positionBeforeNode(m_node));
+ VisiblePosition startPos = createVisiblePosition(Position(m_startContainer, m_startOffset));
+ VisiblePosition currPos = createVisiblePosition(positionBeforeNode(m_node));
return startPos.isNotNull() && currPos.isNotNull() && !inSameLine(startPos, currPos);
}
« no previous file with comments | « Source/core/editing/commands/TypingCommand.cpp ('k') | Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698