Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into...
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jan 2005 21:25:03 +0000 (21:25 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jan 2005 21:25:03 +0000 (21:25 +0000)
commitb856a4a7d1bdeda701b4bb4d2f1550e74e6ad8ed
tree88d4ebd0862fac1c4b986217f69c3361a7a0f824
parenta254306242f49a6d28ce625c68503613cfb0eedd
Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView

This problem occurred because we were creating image elements before creating corresponding image resources. The fix is to have AppKit call us back to create the resources before it creates the elements.

        Reviewed by john.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
        (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/WebView.subproj/WebHTMLView.m