| 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, 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/rendering/RenderView.h" | 30 #include "core/rendering/RenderView.h" |
| 31 #include "core/svg/SVGElement.h" | 31 #include "core/svg/SVGElement.h" |
| 32 #include "core/svg/SVGSVGElement.h" | 32 #include "core/svg/SVGSVGElement.h" |
| 33 #include "core/svg/SVGViewSpec.h" | 33 #include "core/svg/SVGViewSpec.h" |
| 34 #include "core/svg/SVGZoomAndPan.h" | 34 #include "core/svg/SVGZoomAndPan.h" |
| 35 #include "core/svg/SVGZoomEvent.h" | 35 #include "core/svg/SVGZoomEvent.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 SVGDocument::SVGDocument(Frame* frame, const KURL& url) | 39 SVGDocument::SVGDocument(Frame* frame, const KURL& url) |
| 40 : Document(frame, url, false, false) | 40 : Document(frame, url, SVGDocumentClass) |
| 41 { | 41 { |
| 42 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 SVGSVGElement* SVGDocument::rootElement() const | 45 SVGSVGElement* SVGDocument::rootElement() const |
| 46 { | 46 { |
| 47 Element* elem = documentElement(); | 47 Element* elem = documentElement(); |
| 48 if (elem && elem->hasTagName(SVGNames::svgTag)) | 48 if (elem && elem->hasTagName(SVGNames::svgTag)) |
| 49 return toSVGSVGElement(elem); | 49 return toSVGSVGElement(elem); |
| 50 | 50 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 { | 99 { |
| 100 if (childContext.node()->hasTagName(SVGNames::svgTag)) | 100 if (childContext.node()->hasTagName(SVGNames::svgTag)) |
| 101 return toSVGSVGElement(childContext.node())->isValid(); | 101 return toSVGSVGElement(childContext.node())->isValid(); |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } | 105 } |
| 106 | 106 |
| 107 // vim:ts=4:noet | 107 // vim:ts=4:noet |
| 108 #endif // ENABLE(SVG) | 108 #endif // ENABLE(SVG) |
| OLD | NEW |