Changeset 259020 in webkit


Ignore:
Timestamp:
Mar 25, 2020 4:26:37 PM (4 years ago)
Author:
Wenson Hsieh
Message:

Unreviewed, fix the watchOS build after r259008

Put a call to Pasteboard::nameOfDragPasteboard behind ENABLE(DRAG_SUPPORT); additionally, update an out-of-date
comment to reflect the fact that arbitrary UIPasteboards can be converted to a list of NSItemProviders, whose
data can be traversed in fidelity order.

  • platform/ios/PasteboardIOS.mm:

(WebCore::Pasteboard::respectsUTIFidelities const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259015 r259020  
     12020-03-25  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Unreviewed, fix the watchOS build after r259008
     4
     5        Put a call to Pasteboard::nameOfDragPasteboard behind ENABLE(DRAG_SUPPORT); additionally, update an out-of-date
     6        comment to reflect the fact that arbitrary UIPasteboards can be converted to a list of NSItemProviders, whose
     7        data can be traversed in fidelity order.
     8
     9        * platform/ios/PasteboardIOS.mm:
     10        (WebCore::Pasteboard::respectsUTIFidelities const):
     11
    1122020-03-25  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/Source/WebCore/platform/ios/PasteboardIOS.mm

    r259008 r259020  
    351351bool Pasteboard::respectsUTIFidelities() const
    352352{
    353     // For now, data interaction is the only feature that uses item-provider-based pasteboard representations.
    354     // In the future, we may need to consult the client layer to determine whether or not the pasteboard supports
    355     // item types ranked by fidelity.
     353#if ENABLE(DRAG_SUPPORT)
     354    // FIXME: We should respect UTI fidelity for normal UIPasteboard-backed pasteboards as well.
    356355    return m_pasteboardName == Pasteboard::nameOfDragPasteboard();
     356#else
     357    return false;
     358#endif
    357359}
    358360
Note: See TracChangeset for help on using the changeset viewer.