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

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

Issue 2413633002: Prune createVisiblePositionDeprecated from EditingUtilities (Closed)
Patch Set: Address comments Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698