| Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| index d44d8f54a1520cf0f2f3381dca48ffc0270fc1df..f0a72aabda51b27abf62bdc4ac09b3ef688aa55c 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| @@ -203,10 +203,11 @@ TEST_F(HTMLTextFormControlElementTest, SpellCheckDoesNotCauseUpdateLayout)
|
| HTMLInputElement* input = toHTMLInputElement(document().getElementById("input"));
|
| input->focus();
|
| input->setValue("Hello, input field");
|
| + document().updateStyleAndLayout();
|
| VisibleSelection oldSelection = document().frame()->selection().selection();
|
|
|
| Position newPosition(input->innerEditorElement()->firstChild(), 3);
|
| - VisibleSelection newSelection = createVisibleSelectionDeprecated(newPosition, TextAffinity::Downstream);
|
| + VisibleSelection newSelection = createVisibleSelection(newPosition, TextAffinity::Downstream);
|
| document().frame()->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotUpdateAppearance);
|
| ASSERT_EQ(3, input->selectionStart());
|
|
|
|
|