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

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

Issue 1317053004: Make VisiblePosition constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-01T18:48:19 Created 5 years, 4 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: Source/core/editing/PlainTextRange.cpp
diff --git a/Source/core/editing/PlainTextRange.cpp b/Source/core/editing/PlainTextRange.cpp
index c363ee5a782b21e249228fb10944d3ad97962aac..b69bd0ece0d5a12a48dd249906328b3bbf2b5f03 100644
--- a/Source/core/editing/PlainTextRange.cpp
+++ b/Source/core/editing/PlainTextRange.cpp
@@ -113,7 +113,7 @@ EphemeralRange PlainTextRange::createRangeFor(const ContainerNode& scope, GetRan
if (!it.atEnd()) {
textRunEndPosition = it.startPositionInCurrentContainer();
} else {
- Position runEnd = nextPositionOf(VisiblePosition(textRunStartPosition)).deepEquivalent();
+ Position runEnd = nextPositionOf(createVisiblePosition(textRunStartPosition)).deepEquivalent();
if (runEnd.isNotNull())
textRunEndPosition = runEnd;
}

Powered by Google App Engine
This is Rietveld 408576698