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 17 matching lines...) Expand all Loading... |
28 #include "core/page/FrameView.h" | 28 #include "core/page/FrameView.h" |
29 #include "core/rendering/RenderView.h" | 29 #include "core/rendering/RenderView.h" |
30 #include "core/svg/SVGElement.h" | 30 #include "core/svg/SVGElement.h" |
31 #include "core/svg/SVGSVGElement.h" | 31 #include "core/svg/SVGSVGElement.h" |
32 #include "core/svg/SVGViewSpec.h" | 32 #include "core/svg/SVGViewSpec.h" |
33 #include "core/svg/SVGZoomAndPan.h" | 33 #include "core/svg/SVGZoomAndPan.h" |
34 #include "core/svg/SVGZoomEvent.h" | 34 #include "core/svg/SVGZoomEvent.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 SVGDocument::SVGDocument(Frame* frame, const KURL& url) | 38 SVGDocument::SVGDocument(const DocumentInit& initializer) |
39 : Document(frame, url, SVGDocumentClass) | 39 : Document(initializer, SVGDocumentClass) |
40 { | 40 { |
41 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
42 } | 42 } |
43 | 43 |
44 SVGSVGElement* SVGDocument::rootElement() const | 44 SVGSVGElement* SVGDocument::rootElement() const |
45 { | 45 { |
46 Element* elem = documentElement(); | 46 Element* elem = documentElement(); |
47 if (elem && elem->hasTagName(SVGNames::svgTag)) | 47 if (elem && elem->hasTagName(SVGNames::svgTag)) |
48 return toSVGSVGElement(elem); | 48 return toSVGSVGElement(elem); |
49 | 49 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 bool SVGDocument::childShouldCreateRenderer(const NodeRenderingContext& childCon
text) const | 97 bool SVGDocument::childShouldCreateRenderer(const NodeRenderingContext& childCon
text) const |
98 { | 98 { |
99 if (childContext.node()->hasTagName(SVGNames::svgTag)) | 99 if (childContext.node()->hasTagName(SVGNames::svgTag)) |
100 return toSVGSVGElement(childContext.node())->isValid(); | 100 return toSVGSVGElement(childContext.node())->isValid(); |
101 return true; | 101 return true; |
102 } | 102 } |
103 | 103 |
104 } | 104 } |
OLD | NEW |