| 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 25 matching lines...) Expand all Loading... |
| 36 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
rootParent) | 36 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
rootParent) |
| 37 { | 37 { |
| 38 SVGElement::insertedInto(rootParent); | 38 SVGElement::insertedInto(rootParent); |
| 39 if (!rootParent->inDocument()) | 39 if (!rootParent->inDocument()) |
| 40 return InsertionDone; | 40 return InsertionDone; |
| 41 if (hasChildren() && document().isSVGDocument()) | 41 if (hasChildren() && document().isSVGDocument()) |
| 42 document().setTitleElement(this); | 42 document().setTitleElement(this); |
| 43 return InsertionDone; | 43 return InsertionDone; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void SVGTitleElement::removedFrom(ContainerNode* rootParent) | 46 void SVGTitleElement::removedFrom(ContainerNode* rootParent, Node* next) |
| 47 { | 47 { |
| 48 SVGElement::removedFrom(rootParent); | 48 SVGElement::removedFrom(rootParent, next); |
| 49 if (rootParent->inDocument() && document().isSVGDocument()) | 49 if (rootParent->inDocument() && document().isSVGDocument()) |
| 50 document().removeTitle(this); | 50 document().removeTitle(this); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void SVGTitleElement::childrenChanged(const ChildrenChange& change) | 53 void SVGTitleElement::childrenChanged(const ChildrenChange& change) |
| 54 { | 54 { |
| 55 SVGElement::childrenChanged(change); | 55 SVGElement::childrenChanged(change); |
| 56 if (inDocument() && document().isSVGDocument()) | 56 if (inDocument() && document().isSVGDocument()) |
| 57 document().setTitleElement(this); | 57 document().setTitleElement(this); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } | 60 } |
| OLD | NEW |