OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return InsertionDone; | 55 return InsertionDone; |
56 } | 56 } |
57 | 57 |
58 void HTMLTitleElement::removedFrom(const Handle<ContainerNode>& insertionPoint) | 58 void HTMLTitleElement::removedFrom(const Handle<ContainerNode>& insertionPoint) |
59 { | 59 { |
60 HTMLElement::removedFrom(insertionPoint); | 60 HTMLElement::removedFrom(insertionPoint); |
61 if (insertionPoint->inDocument() && !insertionPoint->isInShadowTree()) | 61 if (insertionPoint->inDocument() && !insertionPoint->isInShadowTree()) |
62 document()->removeTitle(this); | 62 document()->removeTitle(this); |
63 } | 63 } |
64 | 64 |
65 void HTMLTitleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 65 void HTMLTitleElement::childrenChanged(bool changedByParser, const Handle<Node>&
beforeChange, const Handle<Node>& afterChange, int childCountDelta) |
66 { | 66 { |
67 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 67 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
68 m_title = textWithDirection(); | 68 m_title = textWithDirection(); |
69 if (inDocument()) { | 69 if (inDocument()) { |
70 if (!isInShadowTree()) | 70 if (!isInShadowTree()) |
71 document()->setTitleElement(m_title, this); | 71 document()->setTitleElement(m_title, this); |
72 else | 72 else |
73 document()->removeTitle(this); | 73 document()->removeTitle(this); |
74 } | 74 } |
75 } | 75 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 appendChild(document()->createTextNode(valueCopy.impl()), IGNORE_EXCEPTI
ON); | 116 appendChild(document()->createTextNode(valueCopy.impl()), IGNORE_EXCEPTI
ON); |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 void HTMLTitleElement::accept(Visitor* visitor) const | 120 void HTMLTitleElement::accept(Visitor* visitor) const |
121 { | 121 { |
122 HTMLElement::accept(visitor); | 122 HTMLElement::accept(visitor); |
123 } | 123 } |
124 | 124 |
125 } | 125 } |
OLD | NEW |