Pasting multiple photos on iOS only pastes one photo
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jun 2014 20:46:39 +0000 (20:46 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jun 2014 20:46:39 +0000 (20:46 +0000)
commit9131940b2624e3a6abfd2291e2ea02f7ddb16617
treea2dd4cda43edc422879a43778d731536d7b02a47
parenta8ede032c086adc7e14136ac9788640fceeb29d9
Pasting multiple photos on iOS only pastes one photo

<https://bugs.webkit.org/show_bug.cgi?id=133495>
<rdar://problem/16138616>

Reviewed by Alexey Proskuryakov.

* editing/ios/EditorIOS.mm:
(WebCore::Editor::pasteWithPasteboard):
Create a WebContentReader. For each pasteboard item, get the document
fragment for that item, and add it to the reader. If we fail to get
the fragment from the delegate, fall back to using
webContentFromPasteboard() as before.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/ios/EditorIOS.mm