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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "ScriptEventListener.h" | 44 #include "ScriptEventListener.h" |
45 #include "XMLNames.h" | 45 #include "XMLNames.h" |
46 | 46 |
47 namespace WebCore { | 47 namespace WebCore { |
48 | 48 |
49 using namespace HTMLNames; | 49 using namespace HTMLNames; |
50 | 50 |
51 SVGElement::SVGElement(const QualifiedName& tagName, Document* document, Constru
ctionType constructionType) | 51 SVGElement::SVGElement(const QualifiedName& tagName, Document* document, Constru
ctionType constructionType) |
52 : StyledElement(tagName, document, constructionType) | 52 : StyledElement(tagName, document, constructionType) |
53 { | 53 { |
| 54 ScriptWrappable::init(this); |
54 setHasCustomStyleCallbacks(); | 55 setHasCustomStyleCallbacks(); |
55 } | 56 } |
56 | 57 |
57 PassRefPtr<SVGElement> SVGElement::create(const QualifiedName& tagName, Document
* document) | 58 PassRefPtr<SVGElement> SVGElement::create(const QualifiedName& tagName, Document
* document) |
58 { | 59 { |
59 return adoptRef(new SVGElement(tagName, document)); | 60 return adoptRef(new SVGElement(tagName, document)); |
60 } | 61 } |
61 | 62 |
62 SVGElement::~SVGElement() | 63 SVGElement::~SVGElement() |
63 { | 64 { |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 if (name == classAttr) | 731 if (name == classAttr) |
731 return isSVGStyledElement(); | 732 return isSVGStyledElement(); |
732 | 733 |
733 return animatableAttributes.contains(name); | 734 return animatableAttributes.contains(name); |
734 } | 735 } |
735 #endif | 736 #endif |
736 | 737 |
737 } | 738 } |
738 | 739 |
739 #endif // ENABLE(SVG) | 740 #endif // ENABLE(SVG) |
OLD | NEW |