OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool updateIfSVGCursorIsUsed(Element*); | 54 bool updateIfSVGCursorIsUsed(Element*); |
55 StyleImage* cachedImage(CachedResourceLoader*); | 55 StyleImage* cachedImage(CachedResourceLoader*); |
56 StyleImage* cachedOrPendingImage(Document*); | 56 StyleImage* cachedOrPendingImage(Document*); |
57 | 57 |
58 #if ENABLE(SVG) | 58 #if ENABLE(SVG) |
59 void removeReferencedElement(SVGElement*); | 59 void removeReferencedElement(SVGElement*); |
60 #endif | 60 #endif |
61 | 61 |
62 bool equals(const CSSCursorImageValue&) const; | 62 bool equals(const CSSCursorImageValue&) const; |
63 | 63 |
64 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; | |
65 | |
66 private: | 64 private: |
67 CSSCursorImageValue(PassRefPtr<CSSValue> imageValue, bool hasHotSpot, const
IntPoint& hotSpot); | 65 CSSCursorImageValue(PassRefPtr<CSSValue> imageValue, bool hasHotSpot, const
IntPoint& hotSpot); |
68 | 66 |
69 #if ENABLE(SVG) | 67 #if ENABLE(SVG) |
70 bool isSVGCursor() const; | 68 bool isSVGCursor() const; |
71 String cachedImageURL(); | 69 String cachedImageURL(); |
72 void clearCachedImage(); | 70 void clearCachedImage(); |
73 #endif | 71 #endif |
74 | 72 |
75 RefPtr<CSSValue> m_imageValue; | 73 RefPtr<CSSValue> m_imageValue; |
76 | 74 |
77 bool m_hasHotSpot; | 75 bool m_hasHotSpot; |
78 IntPoint m_hotSpot; | 76 IntPoint m_hotSpot; |
79 RefPtr<StyleImage> m_image; | 77 RefPtr<StyleImage> m_image; |
80 bool m_accessedImage; | 78 bool m_accessedImage; |
81 | 79 |
82 #if ENABLE(SVG) | 80 #if ENABLE(SVG) |
83 HashSet<SVGElement*> m_referencedElements; | 81 HashSet<SVGElement*> m_referencedElements; |
84 #endif | 82 #endif |
85 }; | 83 }; |
86 | 84 |
87 } // namespace WebCore | 85 } // namespace WebCore |
88 | 86 |
89 #endif // CSSCursorImageValue_h | 87 #endif // CSSCursorImageValue_h |
OLD | NEW |