Changeset 83338 in webkit


Ignore:
Timestamp:
Apr 8, 2011 1:36:18 PM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2011-04-08 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Andreas Kling.

[Qt] Dragging and dropping an image in edit mode does not work
https://bugs.webkit.org/show_bug.cgi?id=19385

When adding an image to the clipboard, we should also include the HTML code of that image so
it can be used for internal drag and drop.

This HTML is expected by all clients of drop events so a fragment can be moved from one browser to
another, or inside the same browser.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83335 r83338  
     12011-04-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Dragging and dropping an image in edit mode does not work
     6        https://bugs.webkit.org/show_bug.cgi?id=19385
     7
     8        When adding an image to the clipboard, we should also include the HTML code of that image so
     9        it can be used for internal drag and drop.
     10
     11        This HTML is expected by all clients of drop events so a fragment can be moved from one browser to
     12        another, or inside the same browser.
     13
     14        * platform/qt/ClipboardQt.cpp:
     15        (WebCore::ClipboardQt::declareAndWriteDragImage):
     16
    1172011-04-07  Anna Cavender  <annacc@chromium.org>
    218
  • trunk/Source/WebCore/platform/qt/ClipboardQt.cpp

    r74009 r83338  
    300300    m_writableData->setText(title);
    301301    m_writableData->setUrls(urls);
     302    m_writableData->setHtml(createMarkup(element, IncludeNode, 0, AbsoluteURLs));
    302303#ifndef QT_NO_CLIPBOARD
    303304    if (isForCopyAndPaste())
Note: See TracChangeset for help on using the changeset viewer.