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

Unified Diff: sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp

Issue 834693007: Remove the remaining parts of ignorePendingStylesheets and placeholder styles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove comment. Created 5 years, 11 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: sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
diff --git a/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp b/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
index f874fd2457ef3698e7a352cae2ad0eebd20d39b6..664684b482bf041b21ea1090e3a7068ba7a1c141 100644
--- a/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
+++ b/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
@@ -274,7 +274,7 @@ void InsertParagraphSeparatorCommand::doApply()
insertNodeAfter(blockToInsert.get(), startBlock);
}
- document().updateLayoutIgnorePendingStylesheets();
+ document().updateLayout();
// Move the start node and the siblings of the start node.
if (VisiblePosition(insertionPosition) != VisiblePosition(positionBeforeNode(blockToInsert.get()))) {
@@ -300,7 +300,7 @@ void InsertParagraphSeparatorCommand::doApply()
// Handle whitespace that occurs after the split
if (positionAfterSplit.isNotNull()) {
- document().updateLayoutIgnorePendingStylesheets();
+ document().updateLayout();
if (!positionAfterSplit.isRenderedCharacter()) {
// Clear out all whitespace and insert one non-breaking space
ASSERT(!positionAfterSplit.containerNode()->renderer() || positionAfterSplit.containerNode()->renderer()->style()->collapseWhiteSpace());
« no previous file with comments | « sky/engine/core/editing/InsertLineBreakCommand.cpp ('k') | sky/engine/core/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698