| 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 21 matching lines...) Expand all Loading... |
| 32 #include "SVGSVGElement.h" | 32 #include "SVGSVGElement.h" |
| 33 #include "SVGViewSpec.h" | 33 #include "SVGViewSpec.h" |
| 34 #include "SVGZoomAndPan.h" | 34 #include "SVGZoomAndPan.h" |
| 35 #include "SVGZoomEvent.h" | 35 #include "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, false, false) |
| 41 { | 41 { |
| 42 ScriptWrappable::init(this); |
| 42 } | 43 } |
| 43 | 44 |
| 44 SVGSVGElement* SVGDocument::rootElement() const | 45 SVGSVGElement* SVGDocument::rootElement() const |
| 45 { | 46 { |
| 46 Element* elem = documentElement(); | 47 Element* elem = documentElement(); |
| 47 if (elem && elem->hasTagName(SVGNames::svgTag)) | 48 if (elem && elem->hasTagName(SVGNames::svgTag)) |
| 48 return toSVGSVGElement(elem); | 49 return toSVGSVGElement(elem); |
| 49 | 50 |
| 50 return 0; | 51 return 0; |
| 51 } | 52 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 { | 99 { |
| 99 if (childContext.node()->hasTagName(SVGNames::svgTag)) | 100 if (childContext.node()->hasTagName(SVGNames::svgTag)) |
| 100 return toSVGSVGElement(childContext.node())->isValid(); | 101 return toSVGSVGElement(childContext.node())->isValid(); |
| 101 return true; | 102 return true; |
| 102 } | 103 } |
| 103 | 104 |
| 104 } | 105 } |
| 105 | 106 |
| 106 // vim:ts=4:noet | 107 // vim:ts=4:noet |
| 107 #endif // ENABLE(SVG) | 108 #endif // ENABLE(SVG) |
| OLD | NEW |