WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61690
[GTK] Remove PasteboardHelperGtk
https://bugs.webkit.org/show_bug.cgi?id=61690
Summary
[GTK] Remove PasteboardHelperGtk
Martin Robinson
Reported
2011-05-28 12:48:46 PDT
PasteboardHelperGtk is an implementation of an abstract class, PasteboardHelper, that allows the GtkClipboard IDs to be defined in WebKit and used in WebCore. Instead of this convoluted approach, it would be better to simply use the default WebCore values and assert that they are equal in WebKit. The pattern is already in use -- see WebCoreSupport/AssertMatchingEnums.cpp.
Attachments
Patch
(36.27 KB, patch)
2011-05-28 13:43 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2011-05-28 13:43:26 PDT
Created
attachment 95272
[details]
Patch
Gustavo Noronha (kov)
Comment 2
2011-06-02 16:15:38 PDT
Comment on
attachment 95272
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95272&action=review
yay; need to go through this simplification drill on the fullscreen video stuff sometime
> Source/WebCore/ChangeLog:5 > + [GTK] Remove PastboardHelperGtk
missing e on Paste
> Source/WebCore/ChangeLog:15 > + * platform/Pasteboard.h: Remove GTK+ specific methods. They are no longer needed.j
trailing j
> Source/WebCore/platform/gtk/PasteboardGtk.cpp:59 > + PasteboardHelper* defaultHelper = PasteboardHelper::defaultPasteboardHelper();
just a suggestion, I'd use helper here instead of defaultHelper for the variable name; 'default' doesn't really add much information
Martin Robinson
Comment 3
2011-06-02 18:05:46 PDT
(In reply to
comment #2
)
> (From update of
attachment 95272
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=95272&action=review
> > yay; need to go through this simplification drill on the fullscreen video stuff sometime
Thanks for the review!
> > Source/WebCore/ChangeLog:5 > > + [GTK] Remove PastboardHelperGtk > missing e on Paste
Oops! Fixed.
> > Source/WebCore/ChangeLog:15 > > + * platform/Pasteboard.h: Remove GTK+ specific methods. They are no longer needed.j > > trailing j
Fixed.
> > Source/WebCore/platform/gtk/PasteboardGtk.cpp:59 > > + PasteboardHelper* defaultHelper = PasteboardHelper::defaultPasteboardHelper(); > just a suggestion, I'd use helper here instead of defaultHelper for the variable name; 'default' doesn't really add much information
Made this change across the entire file.
Martin Robinson
Comment 4
2011-06-02 18:06:10 PDT
Committed
r87978
: <
http://trac.webkit.org/changeset/87978
>
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