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

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

Issue 2628693003: Update layout for mostForward/BackwardCaretPosition in editing/commands (Closed)
Patch Set: Created 3 years, 11 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/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

Powered by Google App Engine
This is Rietveld 408576698