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, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2125 case COMMENT_NODE: | 2125 case COMMENT_NODE: |
2126 case PROCESSING_INSTRUCTION_NODE: | 2126 case PROCESSING_INSTRUCTION_NODE: |
2127 setNodeValue(text, ec); | 2127 setNodeValue(text, ec); |
2128 return; | 2128 return; |
2129 case ELEMENT_NODE: | 2129 case ELEMENT_NODE: |
2130 case ATTRIBUTE_NODE: | 2130 case ATTRIBUTE_NODE: |
2131 case ENTITY_NODE: | 2131 case ENTITY_NODE: |
2132 case ENTITY_REFERENCE_NODE: | 2132 case ENTITY_REFERENCE_NODE: |
2133 case DOCUMENT_FRAGMENT_NODE: | 2133 case DOCUMENT_FRAGMENT_NODE: |
2134 case SHADOW_ROOT_NODE: { | 2134 case SHADOW_ROOT_NODE: { |
2135 ContainerNode* container = toContainerNode(this); | 2135 RefPtr<ContainerNode> container = toContainerNode(this); |
2136 #if ENABLE(MUTATION_OBSERVERS) | 2136 #if ENABLE(MUTATION_OBSERVERS) |
2137 ChildListMutationScope mutation(this); | 2137 ChildListMutationScope mutation(this); |
2138 #endif | 2138 #endif |
2139 container->removeChildren(); | 2139 container->removeChildren(); |
2140 if (!text.isEmpty()) | 2140 if (!text.isEmpty()) |
2141 container->appendChild(document()->createTextNode(text), ec); | 2141 container->appendChild(document()->createTextNode(text), ec); |
2142 return; | 2142 return; |
2143 } | 2143 } |
2144 case DOCUMENT_NODE: | 2144 case DOCUMENT_NODE: |
2145 case DOCUMENT_TYPE_NODE: | 2145 case DOCUMENT_TYPE_NODE: |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3043 | 3043 |
3044 #ifndef NDEBUG | 3044 #ifndef NDEBUG |
3045 | 3045 |
3046 void showTree(const WebCore::Node* node) | 3046 void showTree(const WebCore::Node* node) |
3047 { | 3047 { |
3048 if (node) | 3048 if (node) |
3049 node->showTreeForThis(); | 3049 node->showTreeForThis(); |
3050 } | 3050 } |
3051 | 3051 |
3052 #endif | 3052 #endif |
OLD | NEW |