| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) | 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) |
| 45 END_REGISTER_ANIMATED_PROPERTIES | 45 END_REGISTER_ANIMATED_PROPERTIES |
| 46 | 46 |
| 47 inline SVGCursorElement::SVGCursorElement(const QualifiedName& tagName, Document
* document) | 47 inline SVGCursorElement::SVGCursorElement(const QualifiedName& tagName, Document
* document) |
| 48 : SVGElement(tagName, document) | 48 : SVGElement(tagName, document) |
| 49 , m_x(LengthModeWidth) | 49 , m_x(LengthModeWidth) |
| 50 , m_y(LengthModeHeight) | 50 , m_y(LengthModeHeight) |
| 51 { | 51 { |
| 52 ASSERT(hasTagName(SVGNames::cursorTag)); | 52 ASSERT(hasTagName(SVGNames::cursorTag)); |
| 53 ScriptWrappable::init(this); |
| 53 registerAnimatedPropertiesForSVGCursorElement(); | 54 registerAnimatedPropertiesForSVGCursorElement(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 PassRefPtr<SVGCursorElement> SVGCursorElement::create(const QualifiedName& tagNa
me, Document* document) | 57 PassRefPtr<SVGCursorElement> SVGCursorElement::create(const QualifiedName& tagNa
me, Document* document) |
| 57 { | 58 { |
| 58 return adoptRef(new SVGCursorElement(tagName, document)); | 59 return adoptRef(new SVGCursorElement(tagName, document)); |
| 59 } | 60 } |
| 60 | 61 |
| 61 SVGCursorElement::~SVGCursorElement() | 62 SVGCursorElement::~SVGCursorElement() |
| 62 { | 63 { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 void SVGCursorElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t | 138 void SVGCursorElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t |
| 138 { | 139 { |
| 139 SVGElement::addSubresourceAttributeURLs(urls); | 140 SVGElement::addSubresourceAttributeURLs(urls); |
| 140 | 141 |
| 141 addSubresourceURL(urls, document()->completeURL(href())); | 142 addSubresourceURL(urls, document()->completeURL(href())); |
| 142 } | 143 } |
| 143 | 144 |
| 144 } | 145 } |
| 145 | 146 |
| 146 #endif // ENABLE(SVG) | 147 #endif // ENABLE(SVG) |
| OLD | NEW |