Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: Source/WebCore/dom/Node.cpp

Issue 9569046: Merge 109362 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/option-text-mutation-crash-expected.txt ('k') | Source/WebCore/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698