summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/Cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/Cursor.h')
-rw-r--r--Source/WebCore/platform/Cursor.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebCore/platform/Cursor.h b/Source/WebCore/platform/Cursor.h
index d06ad7d47..a81783e5f 100644
--- a/Source/WebCore/platform/Cursor.h
+++ b/Source/WebCore/platform/Cursor.h
@@ -42,6 +42,7 @@ typedef HICON HCURSOR;
#include "GRefPtrGtk.h"
#elif PLATFORM(QT)
#include <QCursor>
+#include <wtf/Optional.h>
#endif
#if USE(APPKIT)
@@ -140,7 +141,9 @@ namespace WebCore {
#if ENABLE(MOUSE_CURSOR_SCALE)
, m_imageScaleFactor(1)
#endif
- , m_platformCursor(0)
+#if !PLATFORM(QT)
+ , m_platformCursor(nullptr)
+#endif
#endif // !PLATFORM(IOS)
{
}
@@ -181,7 +184,9 @@ namespace WebCore {
float m_imageScaleFactor;
#endif
-#if !USE(APPKIT)
+#if PLATFORM(QT)
+ mutable Optional<QCursor> m_platformCursor;
+#elif !USE(APPKIT)
mutable PlatformCursor m_platformCursor;
#else
mutable RetainPtr<NSCursor> m_platformCursor;