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

Unified Diff: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.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
Index: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
index c2fd4ca90b4d36b105dfd6d46ce602051769c8dc..d4db6ea39207047cdc1d33d8e954d0b7091e5168 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -116,11 +116,14 @@ bool IndentOutdentCommand::tryIndentingAsListItem(const Position& start,
if (editingState->isAborted())
return false;
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
if (canMergeLists(previousList, newList)) {
mergeIdenticalElements(previousList, newList, editingState);
if (editingState->isAborted())
return false;
}
+
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
if (canMergeLists(newList, nextList)) {
mergeIdenticalElements(newList, nextList, editingState);
if (editingState->isAborted())

Powered by Google App Engine
This is Rietveld 408576698