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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2724333002: Get rid of VisibleSelection::firstRangeOf() (Closed)
Patch Set: 2017-03-03T13:18:27 DCHECK(!range) => DCHECK(range) Created 3 years, 10 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 | third_party/WebKit/Source/core/editing/SelectionEditor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 329a39f1c9581c2f1db41206430ce4bd50b8a298..008907f2a1a25a87bbddfed2b826998705955f9b 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -2082,11 +2082,11 @@ const StaticRangeVector* targetRangesForInputEvent(const Node& node) {
if (!hasRichlyEditableStyle(node))
return nullptr;
return new StaticRangeVector(
- 1, StaticRange::create(
- firstRangeOf(node.document()
- .frame()
- ->selection()
- .computeVisibleSelectionInDOMTreeDeprecated())));
+ 1, StaticRange::create(createRange(firstEphemeralRangeOf(
+ node.document()
+ .frame()
+ ->selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()))));
}
DispatchEventResult dispatchBeforeInputInsertText(Node* target,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/SelectionEditor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698