[Webkit-unassigned] [Bug 89872] [WK2] Add new C API to generate MHTML data from the UI process

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 7 17:08:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89872


Anders Carlsson <andersca at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #149472|review?                     |review+
               Flag|                            |




--- Comment #11 from Anders Carlsson <andersca at apple.com>  2012-08-07 17:09:17 PST ---
(From update of attachment 149472)
View in context: https://bugs.webkit.org/attachment.cgi?id=149472&action=review

> Source/WebKit2/UIProcess/API/C/WKPage.cpp:604
> +#ifdef __BLOCKS__
> +static void callGetContentsAsMHTMLDataBlockAndDispose(WKDataRef mhtmlData, WKErrorRef error, void* context)
> +{
> +    WKPageGetContentsAsMHTMLDataBlock block = (WKPageGetContentsAsMHTMLDataBlock)context;
> +    block(mhtmlData, error);
> +    Block_release(block);
> +}
> +
> +void WKPageGetContentsAsMHTMLData_b(WKPageRef pageRef, bool useBinaryEncoding, WKPageGetContentsAsMHTMLDataBlock block)
> +{
> +    WKPageGetContentsAsMHTMLData(pageRef, useBinaryEncoding, Block_copy(block), callGetContentsAsMHTMLDataBlockAndDispose);
> +}
> +#endif

We don't need this API, blocks don't work well with the C API since none of the WK objects are captured by value.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list