Bug 37385

Summary: [Haiku] Use all the new system cursors in CursorHaiku.cpp
Product: WebKit Reporter: Stephan Aßmus <superstippi>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, levin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
[Haiku] Use all the new system cursors
none
[Haiku] Use all the new system cursors
levin: review-
[Haiku] Use all the new system cursors none

Description Stephan Aßmus 2010-04-10 05:11:03 PDT
I've recently added all sorts of system cursors for Haiku, this patch adds support for them in the WebKit port. The definitions for PlatformCursor and PlatformCursorHandle had to be changed for convenience in other parts of the port.
Comment 1 Stephan Aßmus 2010-04-10 05:12:43 PDT
Created attachment 53037 [details]
[Haiku] Use all the new system cursors
Comment 2 Eric Seidel (no email) 2010-04-10 15:08:38 PDT
Comment on attachment 53037 [details]
[Haiku] Use all the new system cursors

Seems either a helper function, or adding some new constructor to Cursor would be cleaner than " Cursor(BCursor(" every time.
Comment 3 Stephan Aßmus 2010-04-11 13:01:52 PDT
Created attachment 53097 [details]
[Haiku] Use all the new system cursors

Revised patch with helper function to create Cursors from BCursorIDs.
Comment 4 David Levin 2010-04-12 23:37:06 PDT
Comment on attachment 53097 [details]
[Haiku] Use all the new system cursors

> Index: WebCore/ChangeLog
> +2010-04-11  Stephan AÃmus  <superstippi@gmx.de>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        [Haiku] Use all the new system cursors available in recent Haiku revisions.
> +        <https://bugs.webkit.org/show_bug.cgi?id=37385>
> +
> +        Covered by existing tests.
> +
> +        * platform/Cursor.h:
> +            - Added necessary include.
> +            - Changed definitions of PlatformCursor and PlatformCursorHandle.

It is clear that you did this but why you did it is unclear. This results in an ifdef in Cursor.h (to change the return type of impl()) where all other ports have been able to avoid it.

r- due to new ifdef which changes the return type of impl().
Comment 5 Stephan Aßmus 2010-04-13 01:53:55 PDT
Created attachment 53232 [details]
[Haiku] Use all the new system cursors

Revised patch, Cursor now keeps a pointer to a BCursor again. Cursor.h needs to changes at all anymore. Also fixed the coding style on the names for static variables, somehow I was under the impression I read this in the style guide document, but I was mistaken.
Comment 6 WebKit Commit Bot 2010-04-13 06:36:31 PDT
Comment on attachment 53232 [details]
[Haiku] Use all the new system cursors

Clearing flags on attachment: 53232

Committed r57512: <http://trac.webkit.org/changeset/57512>
Comment 7 WebKit Commit Bot 2010-04-13 06:36:36 PDT
All reviewed patches have been landed.  Closing bug.