diff options
Diffstat (limited to 'WebCore/page/ContextMenuController.cpp')
-rw-r--r-- | WebCore/page/ContextMenuController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/page/ContextMenuController.cpp b/WebCore/page/ContextMenuController.cpp index d384b02..4ce17bd 100644 --- a/WebCore/page/ContextMenuController.cpp +++ b/WebCore/page/ContextMenuController.cpp @@ -226,7 +226,7 @@ void ContextMenuController::contextMenuItemSelected(ContextMenuItem* item) break; #endif case ContextMenuItemTagSpellingGuess: - ASSERT(frame->selectedText().length()); + ASSERT(frame->editor()->selectedText().length()); if (frame->editor()->shouldInsertText(item->title(), frame->selection()->toNormalizedRange().get(), EditorInsertActionPasted)) { Document* document = frame->document(); RefPtr<ReplaceSelectionCommand> command = ReplaceSelectionCommand::create(document, createFragmentFromMarkup(document, item->title(), ""), true, false, true); |