| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 { | 86 { |
| 87 while (RefPtr<Node> child = oldParent.firstChild()) { | 87 while (RefPtr<Node> child = oldParent.firstChild()) { |
| 88 oldParent.parserRemoveChild(*child); | 88 oldParent.parserRemoveChild(*child); |
| 89 treeScope().adoptIfNeeded(*child); | 89 treeScope().adoptIfNeeded(*child); |
| 90 parserAppendChild(child.get()); | 90 parserAppendChild(child.get()); |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 | 93 |
| 94 ContainerNode::~ContainerNode() | 94 ContainerNode::~ContainerNode() |
| 95 { | 95 { |
| 96 #if !ENABLE(OILPAN) |
| 96 willBeDeletedFromDocument(); | 97 willBeDeletedFromDocument(); |
| 98 #endif |
| 97 removeDetachedChildren(); | 99 removeDetachedChildren(); |
| 98 } | 100 } |
| 99 | 101 |
| 100 bool ContainerNode::isChildTypeAllowed(const Node& child) const | 102 bool ContainerNode::isChildTypeAllowed(const Node& child) const |
| 101 { | 103 { |
| 102 if (!child.isDocumentFragment()) | 104 if (!child.isDocumentFragment()) |
| 103 return childTypeAllowed(child.nodeType()); | 105 return childTypeAllowed(child.nodeType()); |
| 104 | 106 |
| 105 for (Node* node = child.firstChild(); node; node = node->nextSibling()) { | 107 for (Node* node = child.firstChild(); node; node = node->nextSibling()) { |
| 106 if (!childTypeAllowed(node->nodeType())) | 108 if (!childTypeAllowed(node->nodeType())) |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 return true; | 1177 return true; |
| 1176 | 1178 |
| 1177 if (node->isElementNode() && toElement(node)->shadow()) | 1179 if (node->isElementNode() && toElement(node)->shadow()) |
| 1178 return true; | 1180 return true; |
| 1179 | 1181 |
| 1180 return false; | 1182 return false; |
| 1181 } | 1183 } |
| 1182 #endif | 1184 #endif |
| 1183 | 1185 |
| 1184 } // namespace WebCore | 1186 } // namespace WebCore |
| OLD | NEW |