WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73275
Upstream BlackBerry porting of WebCore/editing
https://bugs.webkit.org/show_bug.cgi?id=73275
Summary
Upstream BlackBerry porting of WebCore/editing
Jacky Jiang
Reported
2011-11-28 19:23:37 PST
Blackberry's implementation of WebCore/editing.
Attachments
Patch
(3.81 KB, patch)
2011-11-28 20:01 PST
,
Jacky Jiang
no flags
Details
Formatted Diff
Diff
Patch
(3.72 KB, patch)
2011-11-29 10:19 PST
,
Jacky Jiang
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jacky Jiang
Comment 1
2011-11-28 20:01:24 PST
Created
attachment 116876
[details]
Patch
Daniel Bates
Comment 2
2011-11-28 20:26:56 PST
Comment on
attachment 116876
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116876&action=review
> Source/WebCore/editing/blackberry/EditorBlackBerry.cpp:23 > +#include "ClipboardAccessPolicy.h"
This include is unnecessary since ClipboardBlackBerry.h (below) includes Clipboard.h, which includes this file.
> Source/WebCore/editing/blackberry/EditorBlackBerry.cpp:25 > +#include "NotImplemented.h"
Remove this include since we aren't using its functionality in this file.
> Source/WebCore/editing/blackberry/EditorBlackBerry.cpp:26 > +#include "PassRefPtr.h"
This should be #include <wtf/PassRefPtr.h>.
> Source/WebCore/editing/blackberry/EditorBlackBerry.cpp:30 > +WTF::PassRefPtr<Clipboard> Editor::newGeneralClipboard(ClipboardAccessPolicy policy, Frame*)
Do we need the WTF:: prefix?
> Source/WebCore/editing/blackberry/SmartReplaceBlackBerry.cpp:26 > +bool isCharacterSmartReplaceExempt(UChar32 c, bool isPreviousCharacter)
Neither of these parameters are used in this function. If we want to keep the names of these parameters, don't we need to use UNUSED_PARAM() (*) here so as to avoid compiler warnings? The name of the first parameter doesn't seem very meaningful so I suggest omitting its name. You may want to consider using UNUSED_PARAM(isPreviousCharacter) so as to keep the parameter name isPreviousCharacter even though we don't use it. (*) Defined in JavaScriptCore/wtf/UnusedParam.h, <
http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/UnusedParam.h?rev=74855#L32
>.
> Source/WebCore/editing/blackberry/SmartReplaceBlackBerry.cpp:32 > +}
Nit: This is a short file. It's convention to put an inline comment here, // namespace WebCore, to demarcate the end of the WebCore namespace.
Jacky Jiang
Comment 3
2011-11-28 20:42:06 PST
(In reply to
comment #2
)
> (From update of
attachment 116876
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=116876&action=review
>
Thanks for your review Dan, will update the patch.
Jacky Jiang
Comment 4
2011-11-29 10:19:50 PST
Created
attachment 116993
[details]
Patch Update patch according to Dan's suggestions, remove parameter names of isCharacterSmartReplaceExempt just as Source/WebCore/platform/android/TemporaryLinkStubs.cpp does.
WebKit Review Bot
Comment 5
2011-11-30 01:41:51 PST
Comment on
attachment 116993
[details]
Patch Clearing flags on attachment: 116993 Committed
r101465
: <
http://trac.webkit.org/changeset/101465
>
WebKit Review Bot
Comment 6
2011-11-30 01:41:56 PST
All reviewed patches have been landed. Closing bug.
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