summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/Cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/Cursor.h')
-rw-r--r--WebCore/platform/Cursor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/platform/Cursor.h b/WebCore/platform/Cursor.h
index 92d3596..a962bbb 100644
--- a/WebCore/platform/Cursor.h
+++ b/WebCore/platform/Cursor.h
@@ -35,6 +35,8 @@ typedef struct HICON__* HICON;
typedef HICON HCURSOR;
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
+#elif PLATFORM(MAC)
+#include <wtf/RetainPtr.h>
#elif PLATFORM(GTK)
#include "GRefPtrGtk.h"
#elif PLATFORM(QT)
@@ -82,7 +84,7 @@ namespace WebCore {
};
typedef RefPtr<SharedCursor> PlatformCursor;
#elif PLATFORM(MAC)
- typedef NSCursor* PlatformCursor;
+ typedef NSCursor *PlatformCursor;
#elif PLATFORM(GTK)
typedef PlatformRefPtr<GdkCursor> PlatformCursor;
#elif PLATFORM(EFL)
@@ -183,7 +185,11 @@ namespace WebCore {
IntPoint m_hotSpot;
#endif
+#if !PLATFORM(MAC)
mutable PlatformCursor m_platformCursor;
+#else
+ mutable RetainPtr<NSCursor> m_platformCursor;
+#endif
};
IntPoint determineHotSpot(Image*, const IntPoint& specifiedHotSpot);