[Webkit-unassigned] [Bug 26988] Haiku-specific files for WebCore
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 7 01:59:49 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26988
David Levin <levin at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #32869|review? |review-
Flag| |
--- Comment #46 from David Levin <levin at chromium.org> 2009-08-07 01:59:46 PDT ---
(From update of attachment 32869)
Just a few things to fix up here.
Please run check-webkit-style on this files in this patch to point out the TABs
and unsorted header files, etc. Since the tool will point them out, I'll not
enumerate these issues.
> diff --git a/WebCore/platform/haiku/PasteboardHaiku.cpp b/WebCore/platform/haiku/PasteboardHaiku.cpp
> +void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
> +{
> + BClipboard clipboard("WebKit");
> + BMessage* data;
> +
> + if (clipboard.Lock()) {
fwiw, WebKit tends to favor a return early, so
if (!clipboard.Lock())
return;
would follow this style better.
> + clipboard.Clear();
It is nice to define types in the smallest possible scope and to initialize
them when declared.
So I'd suggestion move BMessage* here.
BMessage* data = clipboard.Data();
if (data) {
Same thing for other similar code in here.
>
> diff --git a/WebCore/platform/haiku/PlatformKeyboardEventHaiku.cpp b/WebCore/platform/haiku/PlatformKeyboardEventHaiku.cpp
> + //case B_SPACE:
> + // return "";
> + case B_TAB:
> + return "U+0009";
> + //case B_ESCAPE:
> + // return "";
Typical WebKit style is to not check in commented out code.
> + return( 0 );
Just "return 0;"
> + default:
> + return( 0 );
Just "return 0;"
> +PlatformKeyboardEvent::PlatformKeyboardEvent(BMessage *message)
"*" placement. "BMessage*"
> diff --git a/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp b/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp
> +PlatformWheelEvent::PlatformWheelEvent(BMessage *message)
"*" placement. "BMessage*"
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list