| 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, 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
| 26 #include "core/rendering/svg/RenderSVGHiddenContainer.h" | 26 #include "core/rendering/svg/RenderSVGHiddenContainer.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 inline SVGSymbolElement::SVGSymbolElement(Document& document) | 30 inline SVGSymbolElement::SVGSymbolElement(Document& document) |
| 31 : SVGElement(SVGNames::symbolTag, document) | 31 : SVGElement(SVGNames::symbolTag, document) |
| 32 , SVGFitToViewBox(this) | 32 , SVGFitToViewBox(this) |
| 33 { | 33 { |
| 34 ScriptWrappable::init(this); | |
| 35 } | 34 } |
| 36 | 35 |
| 37 DEFINE_NODE_FACTORY(SVGSymbolElement) | 36 DEFINE_NODE_FACTORY(SVGSymbolElement) |
| 38 | 37 |
| 39 bool SVGSymbolElement::isSupportedAttribute(const QualifiedName& attrName) | 38 bool SVGSymbolElement::isSupportedAttribute(const QualifiedName& attrName) |
| 40 { | 39 { |
| 41 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 40 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 42 if (supportedAttributes.isEmpty()) | 41 if (supportedAttributes.isEmpty()) |
| 43 SVGFitToViewBox::addSupportedAttributes(supportedAttributes); | 42 SVGFitToViewBox::addSupportedAttributes(supportedAttributes); |
| 44 | 43 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 70 | 69 |
| 71 invalidateInstances(); | 70 invalidateInstances(); |
| 72 } | 71 } |
| 73 | 72 |
| 74 RenderObject* SVGSymbolElement::createRenderer(RenderStyle*) | 73 RenderObject* SVGSymbolElement::createRenderer(RenderStyle*) |
| 75 { | 74 { |
| 76 return new RenderSVGHiddenContainer(this); | 75 return new RenderSVGHiddenContainer(this); |
| 77 } | 76 } |
| 78 | 77 |
| 79 } | 78 } |
| OLD | NEW |