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

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

Issue 2308683003: Add a missing updateStyleAndLayout call in InsertListCommand. (Closed)
Patch Set: -to. Created 4 years, 3 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/InsertListCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
index 490f662c83f22958c837487f6dac997ab2c092a3..3f039cdb7bed09151fb314b18b47b0a0e732849a 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -206,6 +206,9 @@ void InsertListCommand::doApply(EditingState* editingState)
setEndingSelection(endOfSelection);
}
doApplyForSingleParagraph(forceListCreation, listTag, *currentSelection, editingState);
+
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
+
if (editingState->isAborted())
return;
// Fetch the end of the selection, for the reason mentioned above.

Powered by Google App Engine
This is Rietveld 408576698