Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index edbd8955222eea7973a2d854fc2dd3f1ddb0bce1..307b2b687d08005b0b8bdb6d14bfc2ac3d00b7ec 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -159,7 +159,7 @@ static PassRefPtr<DocumentFragment> documentFragmentFromDragData(DragData* dragD |
String title; |
String url = dragData->asURL(frame, DragData::DoNotConvertFilenames, &title); |
if (!url.isEmpty()) { |
- RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(document); |
+ RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(*document); |
anchor->setHref(url); |
if (title.isEmpty()) { |
// Try the plain text first because the url might be normalized or escaped. |