Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index a91f9e264bb4617b32adb3b991b1cf02e02eb208..4ba7c7b891a6e82f05235292b2d82332176700fc 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -350,7 +350,7 @@ void Editor::pasteAsPlainText(const String& pastingText, bool smartReplace) |
target->dispatchEvent(TextEvent::createForPlainTextPaste(m_frame.domWindow(), pastingText, smartReplace), IGNORE_EXCEPTION); |
} |
-void Editor::pasteAsFragment(PassRefPtr<DocumentFragment> pastingFragment, bool smartReplace, bool matchStyle) |
+void Editor::pasteAsFragment(PassRefPtrWillBeRawPtr<DocumentFragment> pastingFragment, bool smartReplace, bool matchStyle) |
{ |
Node* target = findEventTargetFromSelection(); |
if (!target) |
@@ -388,7 +388,7 @@ void Editor::pasteAsPlainTextWithPasteboard(Pasteboard* pasteboard) |
void Editor::pasteWithPasteboard(Pasteboard* pasteboard) |
{ |
RefPtrWillBeRawPtr<Range> range = selectedRange(); |
- RefPtr<DocumentFragment> fragment; |
+ RefPtrWillBeRawPtr<DocumentFragment> fragment = nullptr; |
bool chosePlainText = false; |
if (pasteboard->isHTMLAvailable()) { |
@@ -483,7 +483,7 @@ bool Editor::canSmartReplaceWithPasteboard(Pasteboard* pasteboard) |
return smartInsertDeleteEnabled() && pasteboard->canSmartReplace(); |
} |
-void Editor::replaceSelectionWithFragment(PassRefPtr<DocumentFragment> fragment, bool selectReplacement, bool smartReplace, bool matchStyle) |
+void Editor::replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment> fragment, bool selectReplacement, bool smartReplace, bool matchStyle) |
{ |
if (m_frame.selection().isNone() || !m_frame.selection().isContentEditable() || !fragment) |
return; |