void Editor::pasteAsFragment(PassRefPtr<DocumentFragment> pastingFragment, bool smartReplace, bool matchStyle) { ContainerNode* target = findEventTargetFromSelection(); if (!target) return; target->dispatchEvent(TextEvent::createForFragmentPaste(m_frame.domWindow(), pastingFragment, smartReplace, matchStyle), IGNORE_EXCEPTION); }
void Editor::pasteAsPlainText(const String& pastingText, bool smartReplace) { ContainerNode* target = findEventTargetFromSelection(); if (!target) return; target->dispatchEvent(TextEvent::createForPlainTextPaste(m_frame.domWindow(), pastingText, smartReplace), IGNORE_EXCEPTION); }