| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 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 PassRefPtrWillBeRawPtr<CSSCursorImageValue> create(PassRefPtrWillBeRa
wPtr<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot) | 35 static PassRefPtrWillBeRawPtr<CSSCursorImageValue> create(PassRefPtrWillBeRa
wPtr<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot) |
| 36 { | 36 { |
| 37 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSCursorImag
eValue(imageValue, hasHotSpot, hotSpot)); | 37 return adoptRefWillBeRefCountedGarbageCollected(new CSSCursorImageValue(
imageValue, hasHotSpot, hotSpot)); |
| 38 } | 38 } |
| 39 | 39 |
| 40 ~CSSCursorImageValue(); | 40 ~CSSCursorImageValue(); |
| 41 | 41 |
| 42 bool hasHotSpot() const { return m_hasHotSpot; } | 42 bool hasHotSpot() const { return m_hasHotSpot; } |
| 43 | 43 |
| 44 IntPoint hotSpot() const | 44 IntPoint hotSpot() const |
| 45 { | 45 { |
| 46 if (m_hasHotSpot) | 46 if (m_hasHotSpot) |
| 47 return m_hotSpot; | 47 return m_hotSpot; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 75 bool m_accessedImage; | 75 bool m_accessedImage; |
| 76 | 76 |
| 77 HashSet<SVGElement*> m_referencedElements; | 77 HashSet<SVGElement*> m_referencedElements; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); | 80 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); |
| 81 | 81 |
| 82 } // namespace WebCore | 82 } // namespace WebCore |
| 83 | 83 |
| 84 #endif // CSSCursorImageValue_h | 84 #endif // CSSCursorImageValue_h |
| OLD | NEW |