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