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

Unified Diff: third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.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 | « third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698