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

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

Issue 2425543003: Ensure clean layout for VisibleSelection::selectionFromContentsOfNode (Closed)
Patch Set: 201610171619 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/ReplaceSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
index 30d84ca27f9c60e0cd0712637de6c186fe31ef23..20d63aac1dde467fdef8ee85ee21ffeeac094139 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
@@ -315,6 +315,8 @@ HTMLElement* ReplacementFragment::insertFragmentForTestRendering(
holder->appendChild(m_fragment);
rootEditableElement->appendChild(holder);
+
+ // TODO(editing-dev): Hoist this call to the call sites.
m_document->updateStyleAndLayoutIgnorePendingStylesheets();
return holder;

Powered by Google App Engine
This is Rietveld 408576698