| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "SVGNames.h" | |
| 23 #include "core/svg/SVGSetElement.h" | 22 #include "core/svg/SVGSetElement.h" |
| 24 | 23 |
| 25 namespace WebCore { | 24 namespace WebCore { |
| 26 | 25 |
| 27 inline SVGSetElement::SVGSetElement(const QualifiedName& tagName, Document* docu
ment) | 26 inline SVGSetElement::SVGSetElement(const QualifiedName& tagName, Document* docu
ment) |
| 28 : SVGAnimateElement(tagName, document) | 27 : SVGAnimateElement(tagName, document) |
| 29 { | 28 { |
| 30 setAnimationMode(ToAnimation); | 29 setAnimationMode(ToAnimation); |
| 31 ASSERT(hasTagName(SVGNames::setTag)); | 30 ASSERT(hasTagName(SVGNames::setTag)); |
| 32 ScriptWrappable::init(this); | 31 ScriptWrappable::init(this); |
| 33 } | 32 } |
| 34 | 33 |
| 35 PassRefPtr<SVGSetElement> SVGSetElement::create(const QualifiedName& tagName, Do
cument* document) | 34 PassRefPtr<SVGSetElement> SVGSetElement::create(const QualifiedName& tagName, Do
cument* document) |
| 36 { | 35 { |
| 37 return adoptRef(new SVGSetElement(tagName, document)); | 36 return adoptRef(new SVGSetElement(tagName, document)); |
| 38 } | 37 } |
| 39 | 38 |
| 40 void SVGSetElement::updateAnimationMode() | 39 void SVGSetElement::updateAnimationMode() |
| 41 { | 40 { |
| 42 // No-op, as <set> has a constant animation mode of ToAnimation. | 41 // No-op, as <set> has a constant animation mode of ToAnimation. |
| 43 // See: http://www.w3.org/TR/SVG/single-page.html#animate-SetElement | 42 // See: http://www.w3.org/TR/SVG/single-page.html#animate-SetElement |
| 44 } | 43 } |
| 45 | 44 |
| 46 } | 45 } |
| OLD | NEW |