Bug 37385 - [Haiku] Use all the new system cursors in CursorHaiku.cpp
Summary: [Haiku] Use all the new system cursors in CursorHaiku.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-10 05:11 PDT by Stephan Aßmus
Modified: 2010-04-13 06:36 PDT (History)
2 users (show)

See Also:


Attachments
[Haiku] Use all the new system cursors (10.66 KB, patch)
2010-04-10 05:12 PDT, Stephan Aßmus
no flags Details | Formatted Diff | Diff
[Haiku] Use all the new system cursors (10.85 KB, patch)
2010-04-11 13:01 PDT, Stephan Aßmus
levin: review-
Details | Formatted Diff | Diff
[Haiku] Use all the new system cursors (9.17 KB, patch)
2010-04-13 01:53 PDT, Stephan Aßmus
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.