OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> |
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
url, TreeScope& treeScope) | 41 static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
url, TreeScope& treeScope) |
42 { | 42 { |
43 Element* element = SVGURIReference::targetElementFromIRIString(url, treeScop
e); | 43 Element* element = SVGURIReference::targetElementFromIRIString(url, treeScop
e); |
44 return isSVGCursorElement(element) ? toSVGCursorElement(element) : 0; | 44 return isSVGCursorElement(element) ? toSVGCursorElement(element) : 0; |
45 } | 45 } |
46 | 46 |
47 CSSCursorImageValue::CSSCursorImageValue(CSSValue imageValue, bool hotSpotSpecif
ied, const IntPoint& hotSpot) | 47 CSSCursorImageValue::CSSCursorImageValue(const CSSValue& imageValue, bool hotSpo
tSpecified, const IntPoint& hotSpot) |
48 : CSSValueObject(CursorImageClass) | 48 : CSSValueObject(CursorImageClass) |
49 , m_imageValue(imageValue) | 49 , m_imageValue(imageValue) |
50 , m_hotSpotSpecified(hotSpotSpecified) | 50 , m_hotSpotSpecified(hotSpotSpecified) |
51 , m_hotSpot(hotSpot) | 51 , m_hotSpot(hotSpot) |
52 , m_accessedImage(false) | 52 , m_accessedImage(false) |
53 { | 53 { |
54 } | 54 } |
55 | 55 |
56 CSSCursorImageValue::~CSSCursorImageValue() | 56 CSSCursorImageValue::~CSSCursorImageValue() |
57 { | 57 { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 && m_imageValue.equals(other.m_imageValue); | 200 && m_imageValue.equals(other.m_imageValue); |
201 } | 201 } |
202 | 202 |
203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) | 203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) |
204 { | 204 { |
205 visitor->trace(m_imageValue); | 205 visitor->trace(m_imageValue); |
206 CSSValueObject::traceAfterDispatch(visitor); | 206 CSSValueObject::traceAfterDispatch(visitor); |
207 } | 207 } |
208 | 208 |
209 } // namespace blink | 209 } // namespace blink |
OLD | NEW |