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 27 matching lines...) Expand all Loading... |
38 : SVGElement(SVGNames::cursorTag, document) | 38 : SVGElement(SVGNames::cursorTag, document) |
39 , SVGTests(this) | 39 , SVGTests(this) |
40 , SVGURIReference(this) | 40 , SVGURIReference(this) |
41 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) | 41 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) |
42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) | 42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) |
43 { | 43 { |
44 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
45 | 45 |
46 addToPropertyMap(m_x); | 46 addToPropertyMap(m_x); |
47 addToPropertyMap(m_y); | 47 addToPropertyMap(m_y); |
48 registerAnimatedPropertiesForSVGCursorElement(); | |
49 } | 48 } |
50 | 49 |
51 PassRefPtr<SVGCursorElement> SVGCursorElement::create(Document& document) | 50 PassRefPtr<SVGCursorElement> SVGCursorElement::create(Document& document) |
52 { | 51 { |
53 return adoptRef(new SVGCursorElement(document)); | 52 return adoptRef(new SVGCursorElement(document)); |
54 } | 53 } |
55 | 54 |
56 SVGCursorElement::~SVGCursorElement() | 55 SVGCursorElement::~SVGCursorElement() |
57 { | 56 { |
58 HashSet<SVGElement*>::iterator end = m_clients.end(); | 57 HashSet<SVGElement*>::iterator end = m_clients.end(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 // Any change of a cursor specific attribute triggers this recalc. | 122 // Any change of a cursor specific attribute triggers this recalc. |
124 HashSet<SVGElement*>::const_iterator it = m_clients.begin(); | 123 HashSet<SVGElement*>::const_iterator it = m_clients.begin(); |
125 HashSet<SVGElement*>::const_iterator end = m_clients.end(); | 124 HashSet<SVGElement*>::const_iterator end = m_clients.end(); |
126 | 125 |
127 for (; it != end; ++it) | 126 for (; it != end; ++it) |
128 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); | 127 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); |
129 } | 128 } |
130 | 129 |
131 } | 130 } |
OLD | NEW |