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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditCommand.cpp

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error 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/commands/EditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
index 8ca374741da2815c1f830381cb91356aa97b4f5b..4a21e0d312e3eb36e81fc8ee5de4ea996deed85c 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
@@ -91,7 +91,7 @@ void EditCommand::setEndingSelection(const VisibleSelection& selection)
void EditCommand::setEndingSelection(const VisiblePosition& position)
{
- setEndingSelection(VisibleSelection(position));
+ setEndingSelection(createVisibleSelectionDeprecated(position));
}
bool EditCommand::isRenderedCharacter(const Position& position)

Powered by Google App Engine
This is Rietveld 408576698