| Index: third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp
|
| index 337da60b0d004ea34fb49a17e69ceec3cf8b4485..34bef5c854473e7207ae716bbfa5c36143547341 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp
|
| @@ -75,7 +75,8 @@ void SplitTextNodeCommand::doUnapply()
|
|
|
| String prefixText = m_text1->data();
|
|
|
| - m_text2->insertData(0, prefixText, ASSERT_NO_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
|
| + m_text2->insertData(0, prefixText, ASSERT_NO_EXCEPTION);
|
| + document().updateStyleAndLayout();
|
|
|
| document().markers().copyMarkers(m_text1.get(), 0, prefixText.length(), m_text2.get(), 0);
|
| m_text1->remove(ASSERT_NO_EXCEPTION);
|
| @@ -99,7 +100,8 @@ void SplitTextNodeCommand::insertText1AndTrimText2()
|
| m_text2->parentNode()->insertBefore(m_text1.get(), m_text2.get(), exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| - m_text2->deleteData(0, m_offset, exceptionState, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
|
| + m_text2->deleteData(0, m_offset, exceptionState);
|
| + document().updateStyleAndLayout();
|
| }
|
|
|
| DEFINE_TRACE(SplitTextNodeCommand)
|
|
|