WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137193
[GTK] Move GtkPopupMenu implementation to WebPopupMenuProxyGtk
https://bugs.webkit.org/show_bug.cgi?id=137193
Summary
[GTK] Move GtkPopupMenu implementation to WebPopupMenuProxyGtk
Carlos Garcia Campos
Reported
2014-09-28 04:50:39 PDT
This class was in platform only to have a common implementation to be shared with WebKit1. Now that it's only used by WebPopupMenuProxyGtk in WebKit2, we can simplify the code by merging the implementation directly into WebPopupMenuProxyGtk.
Attachments
Patch
(26.87 KB, patch)
2014-09-28 04:53 PDT
,
Carlos Garcia Campos
gustavo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2014-09-28 04:53:42 PDT
Created
attachment 238812
[details]
Patch
WebKit Commit Bot
Comment 2
2014-09-28 04:55:23 PDT
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.
Gustavo Noronha (kov)
Comment 3
2014-09-30 05:44:06 PDT
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.
Carlos Garcia Campos
Comment 4
2014-09-30 05:50:34 PDT
(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.
Carlos Garcia Campos
Comment 5
2014-09-30 06:28:20 PDT
Committed
r174103
: <
http://trac.webkit.org/changeset/174103
>
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