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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: Created 4 years 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/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 380943d4bd35d176f42aaf4746e2d270e45c48ab..f89bca628377e5fcbbf94d2cf31226e7d021fc61 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -47,6 +47,7 @@
#include "core/editing/EphemeralRange.h"
#include "core/editing/FrameSelection.h"
#include "core/editing/VisiblePosition.h"
+#include "core/editing/commands/CompositeEditCommand.h"
#include "core/editing/markers/DocumentMarkerController.h"
#include "core/editing/spellcheck/SpellChecker.h"
#include "core/events/MouseEvent.h"
@@ -6428,7 +6429,8 @@ TEST_P(ParameterizedWebFrameTest, CancelSpellingRequestCrash) {
element->focus();
frame->frame()->editor().replaceSelectionWithText(
- "A", false, false, InputEvent::InputType::InsertReplacementText);
+ blink::CommandSource::MenuOrKeyBinding, "A", false, false,
+ InputEvent::InputType::InsertReplacementText);
frame->frame()->spellChecker().cancelCheck();
}

Powered by Google App Engine
This is Rietveld 408576698