summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/qt/CursorQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/qt/CursorQt.cpp')
-rw-r--r--Source/WebCore/platform/qt/CursorQt.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/WebCore/platform/qt/CursorQt.cpp b/Source/WebCore/platform/qt/CursorQt.cpp
index 168a2f56b..e7854dde5 100644
--- a/Source/WebCore/platform/qt/CursorQt.cpp
+++ b/Source/WebCore/platform/qt/CursorQt.cpp
@@ -37,8 +37,6 @@
#include "NotImplemented.h"
-#include <QImage>
-#include <QPixmap>
#include <stdio.h>
#include <stdlib.h>
@@ -77,11 +75,10 @@ Cursor& Cursor::operator=(const Cursor& other)
#ifndef QT_NO_CURSOR
static QCursor* createCustomCursor(Image* image, const IntPoint& hotSpot)
{
- QImage* nativeImage = image->nativeImageForCurrentFrame();
- if (!nativeImage)
+ if (!image->nativeImageForCurrentFrame())
return 0;
IntPoint effectiveHotSpot = determineHotSpot(image, hotSpot);
- return new QCursor(QPixmap::fromImage(*nativeImage), effectiveHotSpot.x(), effectiveHotSpot.y());
+ return new QCursor(*(image->nativeImageForCurrentFrame()), effectiveHotSpot.x(), effectiveHotSpot.y());
}
#endif