Index: Source/web/DragClientImpl.cpp |
diff --git a/Source/web/DragClientImpl.cpp b/Source/web/DragClientImpl.cpp |
index 23876d1858083225d81161cfe7be0ca93542a357..cc4ff7a69c6e0d235b93ada8fe79ac0f9d218a8f 100644 |
--- a/Source/web/DragClientImpl.cpp |
+++ b/Source/web/DragClientImpl.cpp |
@@ -33,6 +33,7 @@ |
#include "core/clipboard/DataObject.h" |
#include "core/clipboard/DataTransfer.h" |
+#include "core/frame/FrameProtector.h" |
#include "core/frame/LocalFrame.h" |
#include "platform/DragImage.h" |
#include "platform/geometry/IntSize.h" |
@@ -61,7 +62,7 @@ DragDestinationAction DragClientImpl::actionMaskForDrag(DragData*) |
void DragClientImpl::startDrag(DragImage* dragImage, const IntPoint& dragImageOrigin, const IntPoint& eventPos, DataTransfer* dataTransfer, LocalFrame* frame, bool isLinkDrag) |
{ |
// Add a ref to the frame just in case a load occurs mid-drag. |
- RefPtr<LocalFrame> frameProtector = frame; |
+ FrameProtector frameProtector(frame); |
WebDragData dragData(dataTransfer->dataObject()); |
WebDragOperationsMask dragOperationMask = static_cast<WebDragOperationsMask>(dataTransfer->sourceOperation()); |