OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "core/dom/DOMImplementation.h" | 34 #include "core/dom/DOMImplementation.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/Event.h" | 36 #include "core/dom/Event.h" |
37 #include "core/dom/NodeRenderingContext.h" | 37 #include "core/dom/NodeRenderingContext.h" |
38 #include "core/rendering/RenderObject.h" | 38 #include "core/rendering/RenderObject.h" |
39 #include "core/svg/SVGCursorElement.h" | 39 #include "core/svg/SVGCursorElement.h" |
40 #include "core/svg/SVGDocumentExtensions.h" | 40 #include "core/svg/SVGDocumentExtensions.h" |
41 #include "core/svg/SVGElementInstance.h" | 41 #include "core/svg/SVGElementInstance.h" |
42 #include "core/svg/SVGElementRareData.h" | 42 #include "core/svg/SVGElementRareData.h" |
43 #include "core/svg/SVGGraphicsElement.h" | 43 #include "core/svg/SVGGraphicsElement.h" |
| 44 #include "core/svg/SVGImageElement.h" |
44 #include "core/svg/SVGSVGElement.h" | 45 #include "core/svg/SVGSVGElement.h" |
45 | 46 |
46 namespace WebCore { | 47 namespace WebCore { |
47 | 48 |
48 using namespace HTMLNames; | 49 using namespace HTMLNames; |
49 | 50 |
50 SVGElement::SVGElement(const QualifiedName& tagName, Document* document, Constru
ctionType constructionType) | 51 SVGElement::SVGElement(const QualifiedName& tagName, Document* document, Constru
ctionType constructionType) |
51 : Element(tagName, document, constructionType) | 52 : Element(tagName, document, constructionType) |
52 { | 53 { |
53 ScriptWrappable::init(this); | 54 ScriptWrappable::init(this); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 205 |
205 return 0; | 206 return 0; |
206 } | 207 } |
207 | 208 |
208 SVGElement* SVGElement::viewportElement() const | 209 SVGElement* SVGElement::viewportElement() const |
209 { | 210 { |
210 // This function needs shadow tree support - as RenderSVGContainer uses this
function | 211 // This function needs shadow tree support - as RenderSVGContainer uses this
function |
211 // to determine the "overflow" property. <use> on <symbol> wouldn't work oth
erwhise. | 212 // to determine the "overflow" property. <use> on <symbol> wouldn't work oth
erwhise. |
212 ContainerNode* n = parentOrShadowHostNode(); | 213 ContainerNode* n = parentOrShadowHostNode(); |
213 while (n) { | 214 while (n) { |
214 if (n->hasTagName(SVGNames::svgTag) || n->hasTagName(SVGNames::imageTag)
|| n->hasTagName(SVGNames::symbolTag)) | 215 if (n->hasTagName(SVGNames::svgTag) || isSVGImageElement(n) || n->hasTag
Name(SVGNames::symbolTag)) |
215 return toSVGElement(n); | 216 return toSVGElement(n); |
216 | 217 |
217 n = n->parentOrShadowHostNode(); | 218 n = n->parentOrShadowHostNode(); |
218 } | 219 } |
219 | 220 |
220 return 0; | 221 return 0; |
221 } | 222 } |
222 | 223 |
223 SVGDocumentExtensions* SVGElement::accessDocumentSVGExtensions() | 224 SVGDocumentExtensions* SVGElement::accessDocumentSVGExtensions() |
224 { | 225 { |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 } | 739 } |
739 | 740 |
740 if (name == classAttr) | 741 if (name == classAttr) |
741 return isSVGStyledElement(); | 742 return isSVGStyledElement(); |
742 | 743 |
743 return animatableAttributes.contains(name); | 744 return animatableAttributes.contains(name); |
744 } | 745 } |
745 #endif | 746 #endif |
746 | 747 |
747 } | 748 } |
OLD | NEW |