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

Unified Diff: Source/core/dom/Range.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 | « no previous file | Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Range.cpp
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
index fc64dc3e305c6fb068a80fc83812ebc34394e52b..4fa8b8b9c967ac96e518ae08f00915e822a667e9 100644
--- a/Source/core/dom/Range.cpp
+++ b/Source/core/dom/Range.cpp
@@ -1579,8 +1579,8 @@ void Range::didSplitTextNode(Text& oldNode)
void Range::expand(const String& unit, ExceptionState& exceptionState)
{
- VisiblePosition start(startPosition());
- VisiblePosition end(endPosition());
+ VisiblePosition start = createVisiblePosition(startPosition());
+ VisiblePosition end = createVisiblePosition(endPosition());
if (unit == "word") {
start = startOfWord(start);
end = endOfWord(end);
« no previous file with comments | « no previous file | Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698