Bug 184513

Summary: [WPE] Make WebKitWebViewBackend object mandatory for webkit_web_view_new*() constructors
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: berto, bugs-noreply, cgarcia, ews-watchlist, gustavo, mcatanzaro, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 184357    
Attachments:
Description Flags
Patch none

Zan Dobersek
Reported 2018-04-11 12:29:12 PDT
[WPE] Make WebKitWebViewBackend object mandatory for webkit_web_view_new*() constructors
Attachments
Patch (12.31 KB, patch)
2018-04-11 12:36 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2018-04-11 12:36:21 PDT
EWS Watchlist
Comment 2 2018-04-11 12:38:51 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Michael Catanzaro
Comment 3 2018-04-11 14:58:38 PDT
Comment on attachment 337721 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337721&action=review > Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h:149 > + auto* backend = wpe_view_backend_create(); > + return webkit_web_view_backend_new(backend, reinterpret_cast<GDestroyNotify>(wpe_view_backend_destroy), backend); I would write it in one line
Zan Dobersek
Comment 4 2018-04-11 22:50:32 PDT
Comment on attachment 337721 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337721&action=review >> Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h:149 >> + return webkit_web_view_backend_new(backend, reinterpret_cast<GDestroyNotify>(wpe_view_backend_destroy), backend); > > I would write it in one line You can't, because the backend value is passed in as two separate arguments.
Zan Dobersek
Comment 5 2018-04-11 22:53:28 PDT
Comment on attachment 337721 [details] Patch Clearing flags on attachment: 337721 Committed r230557: <https://trac.webkit.org/changeset/230557>
Zan Dobersek
Comment 6 2018-04-11 22:53:32 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2018-04-11 22:54:16 PDT
Note You need to log in before you can comment on or make changes to this bug.