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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp
index 712740f04bdad1271a0a19689c377a5478c4773d..78d7cc4e01890d752ecbdf5f3dd95d6efbec5ad4 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp
@@ -54,7 +54,8 @@ void DeleteFromTextNodeCommand::doApply(EditingState*)
if (exceptionState.hadException())
return;
- m_node->deleteData(m_offset, m_count, exceptionState, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
+ m_node->deleteData(m_offset, m_count, exceptionState);
+ m_node->document().updateStyleAndLayout();
}
void DeleteFromTextNodeCommand::doUnapply()
@@ -64,7 +65,8 @@ void DeleteFromTextNodeCommand::doUnapply()
if (!m_node->hasEditableStyle())
return;
- m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
+ m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION);
+ m_node->document().updateStyleAndLayout();
}
DEFINE_TRACE(DeleteFromTextNodeCommand)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698