Title: [259020] trunk/Source/WebCore
Revision
259020
Author
wenson_hs...@apple.com
Date
2020-03-25 16:26:37 -0700 (Wed, 25 Mar 2020)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (259019 => 259020)


--- trunk/Source/WebCore/ChangeLog	2020-03-25 23:19:32 UTC (rev 259019)
+++ trunk/Source/WebCore/ChangeLog	2020-03-25 23:26:37 UTC (rev 259020)
@@ -1,3 +1,14 @@
+2020-03-25  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        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):
+
 2020-03-25  Simon Fraser  <simon.fra...@apple.com>
 
         Flashing and partly visible elements

Modified: trunk/Source/WebCore/platform/ios/PasteboardIOS.mm (259019 => 259020)


--- trunk/Source/WebCore/platform/ios/PasteboardIOS.mm	2020-03-25 23:19:32 UTC (rev 259019)
+++ trunk/Source/WebCore/platform/ios/PasteboardIOS.mm	2020-03-25 23:26:37 UTC (rev 259020)
@@ -350,10 +350,12 @@
 
 bool Pasteboard::respectsUTIFidelities() const
 {
-    // For now, data interaction is the only feature that uses item-provider-based pasteboard representations.
-    // In the future, we may need to consult the client layer to determine whether or not the pasteboard supports
-    // item types ranked by fidelity.
+#if ENABLE(DRAG_SUPPORT)
+    // FIXME: We should respect UTI fidelity for normal UIPasteboard-backed pasteboards as well.
     return m_pasteboardName == Pasteboard::nameOfDragPasteboard();
+#else
+    return false;
+#endif
 }
 
 void Pasteboard::readRespectingUTIFidelities(PasteboardWebContentReader& reader, WebContentReadingPolicy policy, Optional<size_t> itemIndex)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to