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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp

Issue 2442673002: Get rid of createVisibleSelection() taking one Position (Closed)
Patch Set: 2016-10-24T17:42:38 Created 4 years, 2 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/spellcheck/SpellCheckerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
index 9c20da8575788d41e51a1ec6459c23197cba7022..06bfba1032a949b501cb755950025ca85d6f116b 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
@@ -51,8 +51,8 @@ TEST_F(SpellCheckerTest, SpellCheckDoesNotCauseUpdateLayout) {
VisibleSelection oldSelection = document().frame()->selection().selection();
Position newPosition(input->innerEditorElement()->firstChild(), 3);
- VisibleSelection newSelection =
- createVisibleSelection(newPosition, TextAffinity::Downstream);
+ VisibleSelection newSelection = createVisibleSelection(
+ SelectionInDOMTree::Builder().collapse(newPosition).build());
document().frame()->selection().setSelection(
newSelection, FrameSelection::CloseTyping |
FrameSelection::ClearTypingStyle |

Powered by Google App Engine
This is Rietveld 408576698