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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 818 } |
819 | 819 |
820 void ContainerNode::attach() | 820 void ContainerNode::attach() |
821 { | 821 { |
822 attachChildren(); | 822 attachChildren(); |
823 Node::attach(); | 823 Node::attach(); |
824 } | 824 } |
825 | 825 |
826 void ContainerNode::detach() | 826 void ContainerNode::detach() |
827 { | 827 { |
828 Node::detach(); | |
829 detachChildren(); | 828 detachChildren(); |
830 clearChildNeedsStyleRecalc(); | 829 clearChildNeedsStyleRecalc(); |
| 830 Node::detach(); |
831 } | 831 } |
832 | 832 |
833 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) | 833 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) |
834 { | 834 { |
835 document()->incDOMTreeVersion(); | 835 document()->incDOMTreeVersion(); |
836 if (!changedByParser && childCountDelta) | 836 if (!changedByParser && childCountDelta) |
837 document()->updateRangesAfterChildrenChanged(this); | 837 document()->updateRangesAfterChildrenChanged(this); |
838 invalidateNodeListCachesInAncestors(); | 838 invalidateNodeListCachesInAncestors(); |
839 } | 839 } |
840 | 840 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 return true; | 1157 return true; |
1158 | 1158 |
1159 if (node->isElementNode() && toElement(node)->shadow()) | 1159 if (node->isElementNode() && toElement(node)->shadow()) |
1160 return true; | 1160 return true; |
1161 | 1161 |
1162 return false; | 1162 return false; |
1163 } | 1163 } |
1164 #endif | 1164 #endif |
1165 | 1165 |
1166 } // namespace WebCore | 1166 } // namespace WebCore |
OLD | NEW |