OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 class SVGTRefElement : public SVGTextPositioningElement, | 32 class SVGTRefElement : public SVGTextPositioningElement, |
33 public SVGURIReference { | 33 public SVGURIReference { |
34 public: | 34 public: |
35 static PassRefPtr<SVGTRefElement> create(const QualifiedName&, Document*); | 35 static PassRefPtr<SVGTRefElement> create(const QualifiedName&, Document*); |
36 | 36 |
37 private: | 37 private: |
38 friend class SubtreeModificationEventListener; | 38 friend class SubtreeModificationEventListener; |
39 | 39 |
40 SVGTRefElement(const QualifiedName&, Document*); | 40 SVGTRefElement(const QualifiedName&, Document*); |
| 41 virtual ~SVGTRefElement(); |
41 | 42 |
42 bool isSupportedAttribute(const QualifiedName&); | 43 bool isSupportedAttribute(const QualifiedName&); |
43 virtual void parseMappedAttribute(Attribute*); | 44 virtual void parseMappedAttribute(Attribute*); |
44 virtual void svgAttributeChanged(const QualifiedName&); | 45 virtual void svgAttributeChanged(const QualifiedName&); |
45 | 46 |
46 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 47 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
47 virtual bool childShouldCreateRenderer(Node*) const; | 48 virtual bool childShouldCreateRenderer(Node*) const; |
48 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 49 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
49 | 50 |
50 virtual void insertedIntoDocument(); | 51 virtual void insertedIntoDocument(); |
51 virtual void removedFromDocument(); | 52 virtual void removedFromDocument(); |
52 | 53 |
| 54 void clearEventListener(); |
| 55 |
53 void updateReferencedText(); | 56 void updateReferencedText(); |
54 | 57 |
55 virtual void buildPendingResource(); | 58 virtual void buildPendingResource(); |
56 | 59 |
57 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTRefElement) | 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTRefElement) |
58 DECLARE_ANIMATED_STRING(Href, href) | 61 DECLARE_ANIMATED_STRING(Href, href) |
59 END_DECLARE_ANIMATED_PROPERTIES | 62 END_DECLARE_ANIMATED_PROPERTIES |
60 | 63 |
61 RefPtr<SubtreeModificationEventListener> m_eventListener; | 64 RefPtr<SubtreeModificationEventListener> m_eventListener; |
62 }; | 65 }; |
63 | 66 |
64 } // namespace WebCore | 67 } // namespace WebCore |
65 | 68 |
66 #endif // ENABLE(SVG) | 69 #endif // ENABLE(SVG) |
67 #endif | 70 #endif |
OLD | NEW |