Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: third_party/WebKit/Source/core/css/CSSCursorImageValue.h

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSCursorImageValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSCursorImageValue.h b/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
index 733b7fa9d54b6e9c5e0e6d9b36061a5a89f57428..644c7129767d4625a75e7505208856290a816d85 100644
--- a/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
@@ -21,18 +21,14 @@
#ifndef CSSCursorImageValue_h
#define CSSCursorImageValue_h
-#include "core/css/CSSImageValue.h"
-#include "core/svg/SVGCursorElement.h"
+#include "core/css/CSSValue.h"
#include "platform/geometry/IntPoint.h"
-#include "wtf/HashSet.h"
namespace blink {
-class Element;
-
class CSSCursorImageValue : public CSSValue {
public:
- static const CSSCursorImageValue* create(CSSValue* imageValue,
+ static const CSSCursorImageValue* create(const CSSValue& imageValue,
bool hotSpotSpecified,
const IntPoint& hotSpot) {
return new CSSCursorImageValue(imageValue, hotSpotSpecified, hotSpot);
@@ -41,36 +37,23 @@ class CSSCursorImageValue : public CSSValue {
~CSSCursorImageValue();
bool hotSpotSpecified() const { return m_hotSpotSpecified; }
-
- IntPoint hotSpot() const { return m_hotSpot; }
+ const IntPoint& hotSpot() const { return m_hotSpot; }
+ const CSSValue& imageValue() const { return *m_imageValue; }
String customCSSText() const;
- SVGCursorElement* getSVGCursorElement(Element*) const;
-
- void clearImageResource() const;
- bool isCachePending(float deviceScaleFactor) const;
- String cachedImageURL() const;
- StyleImage* cachedImage(float deviceScaleFactor) const;
- StyleImage* cacheImage(const Document&, float deviceScaleFactor);
-
bool equals(const CSSCursorImageValue&) const;
DECLARE_TRACE_AFTER_DISPATCH();
private:
- CSSCursorImageValue(CSSValue* imageValue,
+ CSSCursorImageValue(const CSSValue& imageValue,
bool hotSpotSpecified,
const IntPoint& hotSpot);
- bool hasFragmentInURL() const;
-
- Member<CSSValue> m_imageValue;
-
- bool m_hotSpotSpecified;
+ Member<const CSSValue> m_imageValue;
IntPoint m_hotSpot;
- mutable bool m_isCachePending;
- mutable Member<StyleImage> m_cachedImage;
+ bool m_hotSpotSpecified;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue());
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698