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 | |