Chromium Code Reviews| 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 79fc3a505f87005227f699e43e91cd7f4b41f5c6..4a6ad4ebe8e99d88f69cefa6660e4c857011ab46 100644 |
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
| @@ -596,6 +596,8 @@ void InsertListCommand::listifyParagraph(const VisiblePosition& originalStart, |
| startPos = Position::beforeNode(placeholder); |
| } |
| + document().updateStyleAndLayoutIgnorePendingStylesheets(); |
|
yosin_UTC9
2017/01/12 04:52:26
ditto. Please add comment.
|
| + |
| // Insert the list at a position visually equivalent to start of the |
| // paragraph that is being moved into the list. |
| // Try to avoid inserting it somewhere where it will be surrounded by |