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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.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/InsertParagraphSeparatorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
index 2e1a00051adacef2073924a9356be629e45de979..d8185db1c51537cfe28581138857e88f00b6854c 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
@@ -364,6 +364,8 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState) {
refNode = insertionPosition.anchorNode();
}
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
yosin_UTC9 2017/01/12 04:52:26 ditto. Please add comment.
+
// find ending selection position easily before inserting the paragraph
insertionPosition = mostForwardCaretPosition(insertionPosition);

Powered by Google App Engine
This is Rietveld 408576698