WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
206495
[WPE] Add WebKitRectangle, use it for WebKitWebView's SHOW_MENU signal
https://bugs.webkit.org/show_bug.cgi?id=206495
Summary
[WPE] Add WebKitRectangle, use it for WebKitWebView's SHOW_MENU signal
Zan Dobersek
Reported
2020-01-20 04:05:14 PST
[WPE] Add WebKitRectangle, use it for WebKitWebView's SHOW_MENU signal
Attachments
Patch
(17.49 KB, patch)
2020-01-20 04:08 PST
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch for landing
(18.17 KB, patch)
2020-01-20 07:48 PST
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2020-01-20 04:08:27 PST
Created
attachment 388227
[details]
Patch
EWS Watchlist
Comment 2
2020-01-20 04:09:21 PST
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
Carlos Garcia Campos
Comment 3
2020-01-20 04:54:56 PST
Comment on
attachment 388227
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=388227&action=review
> Source/WebKit/UIProcess/API/wpe/WebKitRectangle.cpp:52 > + copy->x = rectangle->x; > + copy->y = rectangle->y; > + copy->width = rectangle->width; > + copy->height = rectangle->height;
I think you can do *copy = *rectangle
> Source/WebKit/UIProcess/API/wpe/WebKitRectangle.cpp:71 > +G_DEFINE_BOXED_TYPE(WebKitRectangle, webkit_rectangle, webkit_rectangle_copy, webkit_rectangle_free);
Remove the trailing ;
> Source/WebKit/UIProcess/API/wpe/WebKitRectangle.h:41 > + * Since: 2.24
2.28
> Source/WebKit/UIProcess/API/wpe/WebKitRectangle.h:56 > +
webkit_rectangle_copy and free declaractions are missing here. If we want to leave them as private in favor of g_boxed_copy/free, they should be static in the cpp and undocumented.
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestOptionMenu.cpp:61 > - static gboolean showOptionMenuCallback(WebKitWebView* webView, WebKitOptionMenu* menu, gpointer*, OptionMenuTest* test) > + static gboolean showOptionMenuCallback(WebKitWebView* webView, WebKitOptionMenu* menu, WebKitRectangle* rect, OptionMenuTest* test)
Can we define PlatformRectangle at the top and then use it instead of WebKit/Gdk to remove some #ifdefs?
Zan Dobersek
Comment 4
2020-01-20 07:48:53 PST
Created
attachment 388243
[details]
Patch for landing
Zan Dobersek
Comment 5
2020-01-20 08:17:07 PST
Comment on
attachment 388243
[details]
Patch for landing Clearing flags on attachment: 388243 Committed
r254828
: <
https://trac.webkit.org/changeset/254828
>
Zan Dobersek
Comment 6
2020-01-20 08:17:12 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2020-01-20 08:18:15 PST
<
rdar://problem/58739327
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug