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
147035
[GTK] Cleanup PasteboardHelper
https://bugs.webkit.org/show_bug.cgi?id=147035
Summary
[GTK] Cleanup PasteboardHelper
Carlos Garcia Campos
Reported
2015-07-17 00:59:18 PDT
It's actually a singleton, but the API suggests you can create your own or use the default one, but the default one should be the only one.
Attachments
Patch
(17.59 KB, patch)
2015-07-17 01:06 PDT
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
Updated patch
(17.74 KB, patch)
2015-07-17 02:07 PDT
,
Carlos Garcia Campos
zan
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2015-07-17 01:06:22 PDT
Created
attachment 256960
[details]
Patch
WebKit Commit Bot
Comment 2
2015-07-17 01:08:35 PDT
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
Zan Dobersek
Comment 3
2015-07-17 01:51:14 PDT
Comment on
attachment 256960
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=256960&action=review
> Source/WebCore/ChangeLog:11 > + PasteboardHelper::singleton() and make it non-copiable, fast
Nit: non-copyable.
> Source/WebCore/platform/gtk/PasteboardHelper.cpp:70 > + gMarkupPrefix = String::fromUTF8("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">");
Not terribly important since it's only called once, but this string seems ASCII-only, so you could initialize gMarkipPrefix from an ASCIILiteral. Also, can this be initialized where it's declared?
> Source/WebCore/platform/gtk/PasteboardHelper.h:38 > + WTF_MAKE_NONCOPYABLE(PasteboardHelper); WTF_MAKE_FAST_ALLOCATED;
No need for WTF_MAKE_FAST_ALLOCATED. There's only one object alive during the program's lifetime, and that one is constructed in memory that's reserved by the static NeverDestroyed<PasteboardHelper> object.
Carlos Garcia Campos
Comment 4
2015-07-17 02:07:08 PDT
Created
attachment 256962
[details]
Updated patch
Carlos Garcia Campos
Comment 5
2015-07-17 02:24:51 PDT
Committed
r186954
: <
http://trac.webkit.org/changeset/186954
>
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