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 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 26 matching lines...) Expand all Loading... |
37 { | 37 { |
38 return adoptRef(new SVGTitleElement(tagName, document)); | 38 return adoptRef(new SVGTitleElement(tagName, document)); |
39 } | 39 } |
40 | 40 |
41 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
rootParent) | 41 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
rootParent) |
42 { | 42 { |
43 SVGElement::insertedInto(rootParent); | 43 SVGElement::insertedInto(rootParent); |
44 if (!rootParent->inDocument()) | 44 if (!rootParent->inDocument()) |
45 return InsertionDone; | 45 return InsertionDone; |
46 if (firstChild()) | 46 if (firstChild()) |
47 document()->setTitleElement(textContent(), this); | 47 document().setTitleElement(textContent(), this); |
48 return InsertionDone; | 48 return InsertionDone; |
49 } | 49 } |
50 | 50 |
51 void SVGTitleElement::removedFrom(ContainerNode* rootParent) | 51 void SVGTitleElement::removedFrom(ContainerNode* rootParent) |
52 { | 52 { |
53 SVGElement::removedFrom(rootParent); | 53 SVGElement::removedFrom(rootParent); |
54 if (rootParent->inDocument()) | 54 if (rootParent->inDocument()) |
55 document()->removeTitle(this); | 55 document().removeTitle(this); |
56 } | 56 } |
57 | 57 |
58 void SVGTitleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 58 void SVGTitleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
59 { | 59 { |
60 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 60 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
61 if (inDocument()) | 61 if (inDocument()) |
62 document()->setTitleElement(textContent(), this); | 62 document().setTitleElement(textContent(), this); |
63 } | 63 } |
64 | 64 |
65 } | 65 } |
OLD | NEW |