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 11 matching lines...) Expand all Loading... |
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 #include "core/svg/SVGElementInstance.h" | 28 #include "core/svg/SVGElementInstance.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 // Animated property definitions | |
33 | |
34 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGCursorElement) | |
35 END_REGISTER_ANIMATED_PROPERTIES | |
36 | |
37 inline SVGCursorElement::SVGCursorElement(Document& document) | 32 inline SVGCursorElement::SVGCursorElement(Document& document) |
38 : SVGElement(SVGNames::cursorTag, document) | 33 : SVGElement(SVGNames::cursorTag, document) |
39 , SVGTests(this) | 34 , SVGTests(this) |
40 , SVGURIReference(this) | 35 , SVGURIReference(this) |
41 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) | 36 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) |
42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) | 37 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) |
43 { | 38 { |
44 ScriptWrappable::init(this); | 39 ScriptWrappable::init(this); |
45 | 40 |
46 addToPropertyMap(m_x); | 41 addToPropertyMap(m_x); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 116 |
122 // Any change of a cursor specific attribute triggers this recalc. | 117 // Any change of a cursor specific attribute triggers this recalc. |
123 HashSet<SVGElement*>::const_iterator it = m_clients.begin(); | 118 HashSet<SVGElement*>::const_iterator it = m_clients.begin(); |
124 HashSet<SVGElement*>::const_iterator end = m_clients.end(); | 119 HashSet<SVGElement*>::const_iterator end = m_clients.end(); |
125 | 120 |
126 for (; it != end; ++it) | 121 for (; it != end; ++it) |
127 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); | 122 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); |
128 } | 123 } |
129 | 124 |
130 } | 125 } |
OLD | NEW |