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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCursorImageValue.h

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> 2 * Copyright (C) 2006 Rob Buis <buis@kde.org>
3 * Copyright (C) 2008 Apple Inc. All right reserved. 3 * Copyright (C) 2008 Apple Inc. All right reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 #include "platform/geometry/IntPoint.h" 25 #include "platform/geometry/IntPoint.h"
26 #include "wtf/HashSet.h" 26 #include "wtf/HashSet.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class Element; 30 class Element;
31 class SVGElement; 31 class SVGElement;
32 32
33 class CSSCursorImageValue : public CSSValue { 33 class CSSCursorImageValue : public CSSValue {
34 public: 34 public:
35 static RawPtr<CSSCursorImageValue> create(RawPtr<CSSValue> imageValue, bool hotSpotSpecified, const IntPoint& hotSpot) 35 static CSSCursorImageValue* create(CSSValue* imageValue, bool hotSpotSpecifi ed, const IntPoint& hotSpot)
36 { 36 {
37 return new CSSCursorImageValue(imageValue, hotSpotSpecified, hotSpot); 37 return new CSSCursorImageValue(imageValue, hotSpotSpecified, hotSpot);
38 } 38 }
39 39
40 ~CSSCursorImageValue(); 40 ~CSSCursorImageValue();
41 41
42 bool hotSpotSpecified() const { return m_hotSpotSpecified; } 42 bool hotSpotSpecified() const { return m_hotSpotSpecified; }
43 43
44 IntPoint hotSpot() const { return m_hotSpot; } 44 IntPoint hotSpot() const { return m_hotSpot; }
45 45
46 String customCSSText() const; 46 String customCSSText() const;
47 47
48 bool updateIfSVGCursorIsUsed(Element*); 48 bool updateIfSVGCursorIsUsed(Element*);
49 bool isCachePending(float deviceScaleFactor) const; 49 bool isCachePending(float deviceScaleFactor) const;
50 StyleImage* cachedImage(float deviceScaleFactor) const; 50 StyleImage* cachedImage(float deviceScaleFactor) const;
51 StyleImage* cacheImage(Document*, float deviceScaleFactor); 51 StyleImage* cacheImage(Document*, float deviceScaleFactor);
52 52
53 #if !ENABLE(OILPAN) 53 #if !ENABLE(OILPAN)
54 void removeReferencedElement(SVGElement*); 54 void removeReferencedElement(SVGElement*);
55 #endif 55 #endif
56 56
57 bool equals(const CSSCursorImageValue&) const; 57 bool equals(const CSSCursorImageValue&) const;
58 58
59 DECLARE_TRACE_AFTER_DISPATCH(); 59 DECLARE_TRACE_AFTER_DISPATCH();
60 60
61 private: 61 private:
62 CSSCursorImageValue(RawPtr<CSSValue> imageValue, bool hotSpotSpecified, cons t IntPoint& hotSpot); 62 CSSCursorImageValue(CSSValue* imageValue, bool hotSpotSpecified, const IntPo int& hotSpot);
63 63
64 bool isSVGCursor() const; 64 bool isSVGCursor() const;
65 String cachedImageURL(); 65 String cachedImageURL();
66 void clearImageResource(); 66 void clearImageResource();
67 67
68 Member<CSSValue> m_imageValue; 68 Member<CSSValue> m_imageValue;
69 69
70 bool m_hotSpotSpecified; 70 bool m_hotSpotSpecified;
71 IntPoint m_hotSpot; 71 IntPoint m_hotSpot;
72 bool m_isCachePending; 72 bool m_isCachePending;
73 Member<StyleImage> m_cachedImage; 73 Member<StyleImage> m_cachedImage;
74 74
75 #if !ENABLE(OILPAN) 75 #if !ENABLE(OILPAN)
76 HashSet<SVGElement*> m_referencedElements; 76 HashSet<SVGElement*> m_referencedElements;
77 #endif 77 #endif
78 }; 78 };
79 79
80 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); 80 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue());
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // CSSCursorImageValue_h 84 #endif // CSSCursorImageValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698