Index: Source/core/html/HTMLTextFormControlElementTest.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElementTest.cpp b/Source/core/html/HTMLTextFormControlElementTest.cpp |
index 26a7ad2199f16a0e73edad78288942ee1d825152..96dc6f8dfcf3b57d2b6b79fe21e3c109a09e1aef 100644 |
--- a/Source/core/html/HTMLTextFormControlElementTest.cpp |
+++ b/Source/core/html/HTMLTextFormControlElementTest.cpp |
@@ -218,7 +218,7 @@ TEST_F(HTMLTextFormControlElementTest, SpellCheckDoesNotCauseUpdateLayout) |
document().frame()->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotUpdateAppearance); |
ASSERT_EQ(3, input->selectionStart()); |
- OwnPtr<SpellChecker> spellChecker(SpellChecker::create(page().frame())); |
+ OwnPtrWillBePersistent<SpellChecker> spellChecker(SpellChecker::create(page().frame())); |
forceLayoutFlag(); |
int startCount = layoutCount(); |
spellChecker->respondToChangedSelection(oldSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle); |