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