| Summary: | [GTK4] Make popup menus work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> | ||||
| Component: | WebKitGTK | Assignee: | Adrian Perez <aperez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bugs-noreply, cgarcia | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Local Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 210100 | ||||||
| Attachments: |
|
||||||
|
Description
Adrian Perez
2020-04-29 05:12:32 PDT
Created attachment 400806 [details]
Patch
Comment on attachment 400806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400806&action=review > Source/WebKit/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:335 > + GdkRectangle windowRect = { rect.x(), rect.y(), rect.width(), rect.height() }; This exact same line is repeated below, so I would take it out of the “#if USE(GTK4)” guard. (In reply to Adrian Perez from comment #2) > Comment on attachment 400806 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=400806&action=review > > > Source/WebKit/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:335 > > + GdkRectangle windowRect = { rect.x(), rect.y(), rect.width(), rect.height() }; > > This exact same line is repeated below, so I would take it out of > the “#if USE(GTK4)” guard. Yes, but inside a GTK_CHECK_VERSION(3, 24, 0) if (In reply to Carlos Garcia Campos from comment #3) > (In reply to Adrian Perez from comment #2) > > Comment on attachment 400806 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=400806&action=review > > > > > Source/WebKit/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:335 > > > + GdkRectangle windowRect = { rect.x(), rect.y(), rect.width(), rect.height() }; > > > > This exact same line is repeated below, so I would take it out of > > the “#if USE(GTK4)” guard. > > Yes, but inside a GTK_CHECK_VERSION(3, 24, 0) if You are right, all good then! Committed r262414: <https://trac.webkit.org/changeset/262414> |