| 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, 2013 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 void ContainerNode::attach(const AttachContext& context) | 845 void ContainerNode::attach(const AttachContext& context) |
| 846 { | 846 { |
| 847 attachChildren(context); | 847 attachChildren(context); |
| 848 clearChildNeedsStyleRecalc(); | 848 clearChildNeedsStyleRecalc(); |
| 849 Node::attach(context); | 849 Node::attach(context); |
| 850 } | 850 } |
| 851 | 851 |
| 852 void ContainerNode::detach(const AttachContext& context) | 852 void ContainerNode::detach(const AttachContext& context) |
| 853 { | 853 { |
| 854 detachChildren(context); | 854 detachChildren(context); |
| 855 clearChildNeedsStyleRecalc(); | 855 setChildNeedsStyleRecalc(); |
| 856 Node::detach(context); | 856 Node::detach(context); |
| 857 } | 857 } |
| 858 | 858 |
| 859 void ContainerNode::childrenChanged(const ChildrenChange& change) | 859 void ContainerNode::childrenChanged(const ChildrenChange& change) |
| 860 { | 860 { |
| 861 document().incDOMTreeVersion(); | 861 document().incDOMTreeVersion(); |
| 862 if (!change.byParser && change.type != TextChanged) | 862 if (!change.byParser && change.type != TextChanged) |
| 863 document().updateRangesAfterChildrenChanged(this); | 863 document().updateRangesAfterChildrenChanged(this); |
| 864 invalidateNodeListCachesInAncestors(); | 864 invalidateNodeListCachesInAncestors(); |
| 865 if (change.isChildInsertion() && !childNeedsStyleRecalc()) { | 865 if (change.isChildInsertion() && !childNeedsStyleRecalc()) { |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 return true; | 1503 return true; |
| 1504 | 1504 |
| 1505 if (node->isElementNode() && toElement(node)->shadow()) | 1505 if (node->isElementNode() && toElement(node)->shadow()) |
| 1506 return true; | 1506 return true; |
| 1507 | 1507 |
| 1508 return false; | 1508 return false; |
| 1509 } | 1509 } |
| 1510 #endif | 1510 #endif |
| 1511 | 1511 |
| 1512 } // namespace blink | 1512 } // namespace blink |
| OLD | NEW |