| 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 50dd6e6d6fb0290912becc9a7c608c6182267158..fea2b21a2ca192f152f3538975b2df2be253f149 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -70,6 +70,7 @@ HTMLElement* InsertListCommand::mergeWithNeighboringLists(
|
| EditingState* editingState) {
|
| HTMLElement* list = passedList;
|
| Element* previousList = ElementTraversal::previousSibling(*list);
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| if (canMergeLists(previousList, list)) {
|
| mergeIdenticalElements(previousList, list, editingState);
|
| if (editingState->isAborted())
|
| @@ -84,6 +85,7 @@ HTMLElement* InsertListCommand::mergeWithNeighboringLists(
|
| return list;
|
|
|
| HTMLElement* nextList = toHTMLElement(nextSibling);
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| if (canMergeLists(list, nextList)) {
|
| mergeIdenticalElements(list, nextList, editingState);
|
| if (editingState->isAborted())
|
| @@ -541,6 +543,7 @@ void InsertListCommand::listifyParagraph(const VisiblePosition& originalStart,
|
| if (editingState->isAborted())
|
| return;
|
|
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| if (canMergeLists(previousList, nextList))
|
| mergeIdenticalElements(previousList, nextList, editingState);
|
|
|
|
|