summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/WebCoreSupport/WebDragClient.mm
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/mac/WebCoreSupport/WebDragClient.mm')
-rw-r--r--WebKit/mac/WebCoreSupport/WebDragClient.mm9
1 files changed, 4 insertions, 5 deletions
diff --git a/WebKit/mac/WebCoreSupport/WebDragClient.mm b/WebKit/mac/WebCoreSupport/WebDragClient.mm
index 2cc7570..7022ad6 100644
--- a/WebKit/mac/WebCoreSupport/WebDragClient.mm
+++ b/WebKit/mac/WebCoreSupport/WebDragClient.mm
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
+ * Copyright (C) 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -121,12 +121,11 @@ DragImageRef WebDragClient::createDragImageForLink(KURL& url, const String& titl
{
if (!frame)
return nil;
- WebHTMLView *htmlView = (WebHTMLView *)[[kit(frame) frameView] documentView];
+ WebHTMLView* htmlView = (WebHTMLView*)[[kit(frame) frameView] documentView];
NSString *label = 0;
if (!title.isEmpty())
- label = title;
- NSURL *cocoaURL = url;
- return [htmlView _dragImageForURL:[cocoaURL _web_userVisibleString] withLabel:label];
+ label = (NSString*)title;
+ return [htmlView _dragImageForURL:[url.getNSURL() _web_userVisibleString] withLabel:label];
}