| Summary: | [GTK] Move GtkPopupMenu implementation to WebPopupMenuProxyGtk | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, gustavo, gyuyoung.kim, pnormand, rakuco, ryuan.choi, sergio, svillar | ||||
| Priority: | P2 | Keywords: | Gtk | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Carlos Garcia Campos
2014-09-28 04:50:39 PDT
Created attachment 238812 [details]
Patch
Attachment 238812 [details] did not pass style-queue:
ERROR: Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:134: Place brace on its own line for function definitions. [whitespace/braces] [4]
Total errors found: 1 in 4 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 238812 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=238812&action=review LGTM with one question: > Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:-69 > - m_popup->clear(); Is clearing the menu no longer necessary? I couldn't figure out what change makes this not needed. (In reply to comment #3) > (From update of attachment 238812 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=238812&action=review > > LGTM with one question: > > > Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.cpp:-69 > > - m_popup->clear(); > > Is clearing the menu no longer necessary? I couldn't figure out what change makes this not needed. Yes, I'm not sure if that was there because WebKit1 worked differently, but in WebKit2, the same WebPopupMenuProxy can't be populated twice, the page proxy always creates a new WebPopupMenuProxy when it receives the ShowPopupMenu message and if there was an active one already, it's destroyed. Committed r174103: <http://trac.webkit.org/changeset/174103> |