Changeset 130712 in webkit


Ignore:
Timestamp:
Oct 8, 2012 6:44:55 PM (12 years ago)
Author:
kling@webkit.org
Message:

REGRESSION(r130643): editing/pasteboard/data-transfer-item is failing on chromium.
<http://webkit.org/b/98686>

Reviewed by Tony Chang.

Change ChromiumDataObject::createFromPasteboard() to use a ListHashSet instead of a HashSet so that
item order is preserved.

  • platform/chromium/ChromiumDataObject.cpp:

(WebCore::ChromiumDataObject::createFromPasteboard):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r130710 r130712  
     12012-10-08  Andreas Kling  <kling@webkit.org>
     2
     3        REGRESSION(r130643): editing/pasteboard/data-transfer-item is failing on chromium.
     4        <http://webkit.org/b/98686>
     5
     6        Reviewed by Tony Chang.
     7
     8        Change ChromiumDataObject::createFromPasteboard() to use a ListHashSet instead of a HashSet so that
     9        item order is preserved.
     10
     11        * platform/chromium/ChromiumDataObject.cpp:
     12        (WebCore::ChromiumDataObject::createFromPasteboard):
     13
    1142012-10-08  Eric Seidel  <eric@webkit.org>
    215
  • trunk/Source/WebCore/platform/chromium/ChromiumDataObject.cpp

    r130588 r130712  
    4949    bool ignored;
    5050    WebKit::WebVector<WebKit::WebString> webTypes = WebKit::Platform::current()->clipboard()->readAvailableTypes(currentPasteboardBuffer(), &ignored);
    51     HashSet<String> types;
     51    ListHashSet<String> types;
    5252    for (size_t i = 0; i < webTypes.size(); ++i)
    5353        types.add(webTypes[i]);
    54     for (HashSet<String>::const_iterator it = types.begin(); it != types.end(); ++it)
     54    for (ListHashSet<String>::const_iterator it = types.begin(); it != types.end(); ++it)
    5555        dataObject->m_itemList.append(ChromiumDataObjectItem::createFromPasteboard(*it, sequenceNumber));
    5656    return dataObject.release();
Note: See TracChangeset for help on using the changeset viewer.