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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 clearChildNeedsStyleRecalc(); | 647 clearChildNeedsStyleRecalc(); |
648 Node::detach(context); | 648 Node::detach(context); |
649 } | 649 } |
650 | 650 |
651 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) | 651 void ContainerNode::childrenChanged(bool changedByParser, Node*, Node*, int chil
dCountDelta) |
652 { | 652 { |
653 document().incDOMTreeVersion(); | 653 document().incDOMTreeVersion(); |
654 if (!changedByParser && childCountDelta) | 654 if (!changedByParser && childCountDelta) |
655 document().updateRangesAfterChildrenChanged(this); | 655 document().updateRangesAfterChildrenChanged(this); |
656 invalidateNodeListCachesInAncestors(); | 656 invalidateNodeListCachesInAncestors(); |
657 if (childCountDelta > 0 && inActiveDocument()) { | |
658 setChildNeedsStyleRecalc(); | |
659 markAncestorsWithChildNeedsStyleRecalc(); | |
660 } | |
661 } | 657 } |
662 | 658 |
663 void ContainerNode::cloneChildNodes(ContainerNode *clone) | 659 void ContainerNode::cloneChildNodes(ContainerNode *clone) |
664 { | 660 { |
665 TrackExceptionState exceptionState; | 661 TrackExceptionState exceptionState; |
666 for (Node* n = firstChild(); n && !exceptionState.hadException(); n = n->nex
tSibling()) | 662 for (Node* n = firstChild(); n && !exceptionState.hadException(); n = n->nex
tSibling()) |
667 clone->appendChild(n->cloneNode(true), exceptionState); | 663 clone->appendChild(n->cloneNode(true), exceptionState); |
668 } | 664 } |
669 | 665 |
670 | 666 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 return true; | 1091 return true; |
1096 | 1092 |
1097 if (node->isElementNode() && toElement(node)->shadow()) | 1093 if (node->isElementNode() && toElement(node)->shadow()) |
1098 return true; | 1094 return true; |
1099 | 1095 |
1100 return false; | 1096 return false; |
1101 } | 1097 } |
1102 #endif | 1098 #endif |
1103 | 1099 |
1104 } // namespace WebCore | 1100 } // namespace WebCore |
OLD | NEW |