| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 26 matching lines...) Expand all Loading... |
| 37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGElement) | 37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGElement) |
| 38 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 38 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) | 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) |
| 40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) | 40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) |
| 41 END_REGISTER_ANIMATED_PROPERTIES | 41 END_REGISTER_ANIMATED_PROPERTIES |
| 42 | 42 |
| 43 SVGGElement::SVGGElement(const QualifiedName& tagName, Document* document, Const
ructionType constructionType) | 43 SVGGElement::SVGGElement(const QualifiedName& tagName, Document* document, Const
ructionType constructionType) |
| 44 : SVGStyledTransformableElement(tagName, document, constructionType) | 44 : SVGStyledTransformableElement(tagName, document, constructionType) |
| 45 { | 45 { |
| 46 ASSERT(hasTagName(SVGNames::gTag)); | 46 ASSERT(hasTagName(SVGNames::gTag)); |
| 47 ScriptWrappable::init(this); |
| 47 registerAnimatedPropertiesForSVGGElement(); | 48 registerAnimatedPropertiesForSVGGElement(); |
| 48 } | 49 } |
| 49 | 50 |
| 50 PassRefPtr<SVGGElement> SVGGElement::create(const QualifiedName& tagName, Docume
nt* document) | 51 PassRefPtr<SVGGElement> SVGGElement::create(const QualifiedName& tagName, Docume
nt* document) |
| 51 { | 52 { |
| 52 return adoptRef(new SVGGElement(tagName, document)); | 53 return adoptRef(new SVGGElement(tagName, document)); |
| 53 } | 54 } |
| 54 | 55 |
| 55 bool SVGGElement::isSupportedAttribute(const QualifiedName& attrName) | 56 bool SVGGElement::isSupportedAttribute(const QualifiedName& attrName) |
| 56 { | 57 { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 bool SVGGElement::rendererIsNeeded(const NodeRenderingContext&) | 112 bool SVGGElement::rendererIsNeeded(const NodeRenderingContext&) |
| 112 { | 113 { |
| 113 // Unlike SVGStyledElement::rendererIsNeeded(), we still create renderers, e
ven if | 114 // Unlike SVGStyledElement::rendererIsNeeded(), we still create renderers, e
ven if |
| 114 // display is set to 'none' - which is special to SVG <g> container elements
. | 115 // display is set to 'none' - which is special to SVG <g> container elements
. |
| 115 return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElem
ent(); | 116 return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElem
ent(); |
| 116 } | 117 } |
| 117 | 118 |
| 118 } | 119 } |
| 119 | 120 |
| 120 #endif // ENABLE(SVG) | 121 #endif // ENABLE(SVG) |
| OLD | NEW |