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

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

Issue 2018923002: Fixed cursor hotspot SVG override and made CSSCursorImageValue constant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 months 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 a989590577506bf4382e22296ba90d668d42d231..1691c9cc917405807e1faac137e9a90b292351f2 100644
--- a/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
@@ -22,6 +22,7 @@
#define CSSCursorImageValue_h
#include "core/css/CSSImageValue.h"
+#include "core/svg/SVGCursorElement.h"
#include "platform/geometry/IntPoint.h"
#include "wtf/HashSet.h"
@@ -45,8 +46,11 @@ public:
String customCSSText() const;
- bool updateIfSVGCursorIsUsed(Element*);
+ SVGCursorElement* getSVGCursorElement(Element*) const;
+
+ void clearImageResource() const;
bool isCachePending(float deviceScaleFactor) const;
+ String cachedImageURL() const;
StyleImage* cachedImage(float deviceScaleFactor) const;
StyleImage* cacheImage(Document*, float deviceScaleFactor);
@@ -57,16 +61,14 @@ public:
private:
CSSCursorImageValue(CSSValue* imageValue, bool hotSpotSpecified, const IntPoint& hotSpot);
- bool isSVGCursor() const;
- String cachedImageURL();
- void clearImageResource();
+ bool hasFragmentInURL() const;
Member<CSSValue> m_imageValue;
bool m_hotSpotSpecified;
IntPoint m_hotSpot;
- bool m_isCachePending;
- Member<StyleImage> m_cachedImage;
+ mutable bool m_isCachePending;
+ mutable Member<StyleImage> m_cachedImage;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue());

Powered by Google App Engine
This is Rietveld 408576698