OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
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 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 | 22 |
23 #include "core/svg/SVGCursorElement.h" | 23 #include "core/svg/SVGCursorElement.h" |
24 | 24 |
25 #include "SVGNames.h" | 25 #include "SVGNames.h" |
26 #include "XLinkNames.h" | 26 #include "XLinkNames.h" |
27 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 SVGCursorElement::SVGCursorElement(Document& document) | 31 inline SVGCursorElement::SVGCursorElement(Document& document) |
32 : SVGElement(SVGNames::cursorTag, document) | 32 : SVGElement(SVGNames::cursorTag, document) |
33 , SVGTests(this) | 33 , SVGTests(this) |
34 , SVGURIReference(this) | 34 , SVGURIReference(this) |
35 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 35 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
36 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 36 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) |
37 { | 37 { |
38 ScriptWrappable::init(this); | 38 ScriptWrappable::init(this); |
39 | 39 |
40 addToPropertyMap(m_x); | 40 addToPropertyMap(m_x); |
41 addToPropertyMap(m_y); | 41 addToPropertyMap(m_y); |
42 } | 42 } |
43 | 43 |
| 44 DEFINE_NODE_FACTORY(SVGCursorElement) |
| 45 |
44 SVGCursorElement::~SVGCursorElement() | 46 SVGCursorElement::~SVGCursorElement() |
45 { | 47 { |
46 // The below teardown is all handled by weak pointer processing in oilpan. | 48 // The below teardown is all handled by weak pointer processing in oilpan. |
47 #if !ENABLE(OILPAN) | 49 #if !ENABLE(OILPAN) |
48 HashSet<RawPtr<SVGElement> >::iterator end = m_clients.end(); | 50 HashSet<RawPtr<SVGElement> >::iterator end = m_clients.end(); |
49 for (HashSet<RawPtr<SVGElement> >::iterator it = m_clients.begin(); it != en
d; ++it) | 51 for (HashSet<RawPtr<SVGElement> >::iterator it = m_clients.begin(); it != en
d; ++it) |
50 (*it)->cursorElementRemoved(); | 52 (*it)->cursorElementRemoved(); |
51 #endif | 53 #endif |
52 } | 54 } |
53 | 55 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); | 123 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); |
122 } | 124 } |
123 | 125 |
124 void SVGCursorElement::trace(Visitor* visitor) | 126 void SVGCursorElement::trace(Visitor* visitor) |
125 { | 127 { |
126 visitor->trace(m_clients); | 128 visitor->trace(m_clients); |
127 SVGElement::trace(visitor); | 129 SVGElement::trace(visitor); |
128 } | 130 } |
129 | 131 |
130 } | 132 } |
OLD | NEW |