Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index a89c4dada4147ffa54107e2389d2767be7db1adc..c2a0b47e0347e9fce41d5f2dd182018ca6a5be8e 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -121,7 +121,7 @@ static PlatformMouseEvent createMouseEvent(DragData* dragData) |
metaKey, currentTime()); |
} |
-static PassRefPtr<Clipboard> createDraggingClipboard(ClipboardAccessPolicy policy, DragData* dragData) |
+static PassRefPtrWillBeRawPtr<Clipboard> createDraggingClipboard(ClipboardAccessPolicy policy, DragData* dragData) |
{ |
return Clipboard::create(Clipboard::DragAndDrop, policy, dragData->platformData()); |
} |
@@ -218,7 +218,7 @@ void DragController::dragExited(DragData* dragData) |
if (RefPtr<FrameView> v = mainFrame->view()) { |
ClipboardAccessPolicy policy = (!m_documentUnderMouse || m_documentUnderMouse->securityOrigin()->isLocal()) ? ClipboardReadable : ClipboardTypesReadable; |
- RefPtr<Clipboard> clipboard = createDraggingClipboard(policy, dragData); |
+ RefPtrWillBeRawPtr<Clipboard> clipboard = createDraggingClipboard(policy, dragData); |
clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); |
mainFrame->eventHandler().cancelDragAndDrop(createMouseEvent(dragData), clipboard.get()); |
clipboard->setAccessPolicy(ClipboardNumb); // invalidate clipboard here for security |
@@ -243,7 +243,7 @@ bool DragController::performDrag(DragData* dragData) |
bool preventedDefault = false; |
if (mainFrame->view()) { |
// Sending an event can result in the destruction of the view and part. |
- RefPtr<Clipboard> clipboard = createDraggingClipboard(ClipboardReadable, dragData); |
+ RefPtrWillBeRawPtr<Clipboard> clipboard = createDraggingClipboard(ClipboardReadable, dragData); |
clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); |
preventedDefault = mainFrame->eventHandler().performDragAndDrop(createMouseEvent(dragData), clipboard.get()); |
clipboard->setAccessPolicy(ClipboardNumb); // Invalidate clipboard here for security |
@@ -596,7 +596,7 @@ bool DragController::tryDHTMLDrag(DragData* dragData, DragOperation& operation) |
return false; |
ClipboardAccessPolicy policy = m_documentUnderMouse->securityOrigin()->isLocal() ? ClipboardReadable : ClipboardTypesReadable; |
- RefPtr<Clipboard> clipboard = createDraggingClipboard(policy, dragData); |
+ RefPtrWillBeRawPtr<Clipboard> clipboard = createDraggingClipboard(policy, dragData); |
DragOperation srcOpMask = dragData->draggingSourceOperationMask(); |
clipboard->setSourceOperation(srcOpMask); |