Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp

Issue 2102423002: Move |updateStyleAndLayout()| call from |updateTextLayoutObject()| to call sites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-29T16:59:47 Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698