CSSCursorImageValue.h [plain text]
#ifndef CSSCursorImageValue_h
#define CSSCursorImageValue_h
#include "CSSImageValue.h"
#include "IntPoint.h"
#include <wtf/HashSet.h>
namespace WebCore {
class Element;
class SVGElement;
class CSSCursorImageValue : public CSSImageValue {
public:
static PassRefPtr<CSSCursorImageValue> create(const String& url, const IntPoint& hotSpot)
{
return adoptRef(new CSSCursorImageValue(url, hotSpot));
}
~CSSCursorImageValue();
IntPoint hotSpot() const { return m_hotSpot; }
bool updateIfSVGCursorIsUsed(Element*);
StyleCachedImage* cachedImage(CachedResourceLoader*);
#if ENABLE(SVG)
void removeReferencedElement(SVGElement*);
#endif
private:
CSSCursorImageValue(const String& url, const IntPoint& hotSpot);
IntPoint m_hotSpot;
#if ENABLE(SVG)
HashSet<SVGElement*> m_referencedElements;
#endif
};
}
#endif // CSSCursorImageValue_h