| 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 9797b957683469d3793dd9216ba94f6e28e5ff49..d9dc694304fe25381e6ffb0da5d7c8735c2cfd3c 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -187,6 +187,11 @@ void InsertListCommand::doApply(EditingState* editingState)
|
| if (!singleParagraphResult)
|
| break;
|
| if (endOfSelection.isNull() || endOfSelection.isOrphan() || startOfLastParagraph.isNull() || startOfLastParagraph.isOrphan()) {
|
| +
|
| + // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
|
| + // see http://crbug.com/590369 for more details.
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| endOfSelection = visiblePositionForIndex(indexForEndOfSelection, scopeForEndOfSelection);
|
| // If endOfSelection is null, then some contents have been deleted from the document.
|
| // This should never happen and if it did, exit early immediately because we've lost the loop invariant.
|
|
|