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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 // can add more callbacks to the end of the queue. | 703 // can add more callbacks to the end of the queue. |
704 for (size_t i = 0; i < s_postAttachCallbackQueue->size(); ++i) { | 704 for (size_t i = 0; i < s_postAttachCallbackQueue->size(); ++i) { |
705 const CallbackInfo& info = (*s_postAttachCallbackQueue)[i]; | 705 const CallbackInfo& info = (*s_postAttachCallbackQueue)[i]; |
706 info.first(info.second.get()); | 706 info.first(info.second.get()); |
707 } | 707 } |
708 s_postAttachCallbackQueue->clear(); | 708 s_postAttachCallbackQueue->clear(); |
709 } | 709 } |
710 | 710 |
711 void ContainerNode::attach(const AttachContext& context) | 711 void ContainerNode::attach(const AttachContext& context) |
712 { | 712 { |
713 attachChildren(); | 713 attachChildren(context); |
714 Node::attach(context); | 714 Node::attach(context); |
715 } | 715 } |
716 | 716 |
717 void ContainerNode::detach(const AttachContext& context) | 717 void ContainerNode::detach(const AttachContext& context) |
718 { | 718 { |
719 detachChildren(); | 719 detachChildren(context); |
720 clearChildNeedsStyleRecalc(); | 720 clearChildNeedsStyleRecalc(); |
721 Node::detach(context); | 721 Node::detach(context); |
722 } | 722 } |
723 | 723 |
724 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) | 724 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) |
725 { | 725 { |
726 document()->incDOMTreeVersion(); | 726 document()->incDOMTreeVersion(); |
727 if (!changedByParser && childCountDelta) | 727 if (!changedByParser && childCountDelta) |
728 document()->updateRangesAfterChildrenChanged(this); | 728 document()->updateRangesAfterChildrenChanged(this); |
729 invalidateNodeListCachesInAncestors(); | 729 invalidateNodeListCachesInAncestors(); |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 return true; | 1063 return true; |
1064 | 1064 |
1065 if (node->isElementNode() && toElement(node)->shadow()) | 1065 if (node->isElementNode() && toElement(node)->shadow()) |
1066 return true; | 1066 return true; |
1067 | 1067 |
1068 return false; | 1068 return false; |
1069 } | 1069 } |
1070 #endif | 1070 #endif |
1071 | 1071 |
1072 } // namespace WebCore | 1072 } // namespace WebCore |
OLD | NEW |