summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/style/CursorData.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/style/CursorData.h')
-rw-r--r--WebCore/rendering/style/CursorData.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/WebCore/rendering/style/CursorData.h b/WebCore/rendering/style/CursorData.h
index 7c6b31d..2341e71 100644
--- a/WebCore/rendering/style/CursorData.h
+++ b/WebCore/rendering/style/CursorData.h
@@ -31,15 +31,17 @@
namespace WebCore {
-struct CursorData {
- CursorData()
- : cursorImage(0)
+class CursorData {
+public:
+ CursorData(CachedImage* image, const IntPoint& hotSpot)
+ : m_image(image)
+ , m_hotSpot(hotSpot)
{
}
bool operator==(const CursorData& o) const
{
- return hotSpot == o.hotSpot && cursorImage == o.cursorImage;
+ return m_hotSpot == o.m_hotSpot && m_image == o.m_image;
}
bool operator!=(const CursorData& o) const
@@ -47,8 +49,12 @@ struct CursorData {
return !(*this == o);
}
- IntPoint hotSpot; // for CSS3 support
- CachedResourceHandle<CachedImage> cursorImage;
+ const CachedImage* image() const { return m_image.get(); }
+ const IntPoint& hotSpot() const { return m_hotSpot; }
+
+private:
+ CachedResourceHandle<CachedImage> m_image;
+ IntPoint m_hotSpot; // for CSS3 support
};
} // namespace WebCore