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

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

Issue 2705373002: Remove unnecessary layout updates from InsertInto/DeleteFromTextNodeCommand (Closed)
Patch Set: Add layout updates for clients requiring that explicitly Created 3 years, 10 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 1c470e02411be25118b5135c1d47590aa9acadb0..5999ce1559e1c3843df68b08bac1c5f17b7d423f 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
@@ -63,7 +63,6 @@ void InsertIntoTextNodeCommand::doApply(EditingState*) {
}
m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION_FOR_TESTING);
- document().updateStyleAndLayout();
}
void InsertIntoTextNodeCommand::doUnapply() {
@@ -71,7 +70,6 @@ void InsertIntoTextNodeCommand::doUnapply() {
return;
m_node->deleteData(m_offset, m_text.length(), IGNORE_EXCEPTION_FOR_TESTING);
- document().updateStyleAndLayout();
}
DEFINE_TRACE(InsertIntoTextNodeCommand) {

Powered by Google App Engine
This is Rietveld 408576698