Changeset 87897 in webkit


Ignore:
Timestamp:
Jun 2, 2011 5:10:48 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-02 Aparna Nandyal <aparna.nand@wipro.com>

Reviewed by Andreas Kling.

[Qt] Multiple drop events when doing DnD of images.
https://bugs.webkit.org/show_bug.cgi?id=61504

Duplicate entries of the url were getting added into drag data
which is removed. The duplicate entries were causing the same image
url to be copied twice. The code changes now match other webkit ports.

  • platform/qt/ClipboardQt.cpp: (WebCore::ClipboardQt::declareAndWriteDragImage):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87896 r87897  
     12011-06-02  Aparna Nandyal  <aparna.nand@wipro.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Multiple drop events when doing DnD of images.
     6        https://bugs.webkit.org/show_bug.cgi?id=61504
     7
     8        Duplicate entries of the url were getting added into drag data
     9        which is removed. The duplicate entries were causing the same image
     10        url to be copied twice. The code changes now match other webkit ports.
     11
     12        * platform/qt/ClipboardQt.cpp:
     13        (WebCore::ClipboardQt::declareAndWriteDragImage):
     14
    1152011-06-02  Naiem Shaik  <naiem.shaik@gmail.com>
    216
  • trunk/Source/WebCore/platform/qt/ClipboardQt.cpp

    r85648 r87897  
    299299    QList<QUrl> urls;
    300300    urls.append(url);
    301     urls.append(fullURL);
    302301
    303302    m_writableData->setText(title);
    304303    m_writableData->setUrls(urls);
    305     m_writableData->setHtml(createMarkup(element, IncludeNode, 0, AbsoluteURLs));
     304    m_writableData->setHtml(imageToMarkup(fullURL, element));
    306305#ifndef QT_NO_CLIPBOARD
    307306    if (isForCopyAndPaste())
Note: See TracChangeset for help on using the changeset viewer.