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

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

Issue 2393903003: [LayoutTest] Fix flakey test "inputevent-drag-drop.html" (Closed)
Patch Set: Clear composition after merging with command wrapper 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index 448c3b9fda768de6bbe14a0f0d9e6b4e4a2b2c0c..a71e3fec593d8be4dfac56b78d3ea32c56a51f1f 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -300,6 +300,7 @@ void CompositeEditCommand::applyCommandToComposite(
void CompositeEditCommand::appendCommandToComposite(
CompositeEditCommand* command) {
ensureComposition()->append(command->ensureComposition());
+ command->m_composition = nullptr;
yosin_UTC9 2016/10/06 01:22:09 This is right place to fix. I hit DCHECK(isTopLeve
command->setParent(this);
m_commands.append(command);
}

Powered by Google App Engine
This is Rietveld 408576698