| Index: third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
|
| index ce0256c9a1ec3146b755e3a584894c65e532c00d..a518d6e37f3c305fadbac3ce2639f0a86b47a746 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
|
| @@ -59,7 +59,8 @@ void InsertIntoTextNodeCommand::doApply(EditingState*)
|
| layoutText->momentarilyRevealLastTypedCharacter(m_offset + m_text.length() - 1);
|
| }
|
|
|
| - m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
|
| + m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION);
|
| + document().updateStyleAndLayout();
|
| }
|
|
|
| void InsertIntoTextNodeCommand::doUnapply()
|
| @@ -67,7 +68,8 @@ void InsertIntoTextNodeCommand::doUnapply()
|
| if (!m_node->hasEditableStyle())
|
| return;
|
|
|
| - m_node->deleteData(m_offset, m_text.length(), IGNORE_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
|
| + m_node->deleteData(m_offset, m_text.length(), IGNORE_EXCEPTION);
|
| + document().updateStyleAndLayout();
|
| }
|
|
|
| DEFINE_TRACE(InsertIntoTextNodeCommand)
|
|
|