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

Side by Side Diff: Source/WebCore/rendering/RenderObjectChildList.cpp

Issue 7049017: Merge 86358 - 2011-05-12 Carol Szabo <carol@webkit.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « Source/WebCore/rendering/RenderCounter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 if (firstChild() == oldChild) 123 if (firstChild() == oldChild)
124 setFirstChild(oldChild->nextSibling()); 124 setFirstChild(oldChild->nextSibling());
125 if (lastChild() == oldChild) 125 if (lastChild() == oldChild)
126 setLastChild(oldChild->previousSibling()); 126 setLastChild(oldChild->previousSibling());
127 127
128 oldChild->setPreviousSibling(0); 128 oldChild->setPreviousSibling(0);
129 oldChild->setNextSibling(0); 129 oldChild->setNextSibling(0);
130 oldChild->setParent(0); 130 oldChild->setParent(0);
131 131
132 if (oldChild->m_hasCounterNodeMap) 132 RenderCounter::rendererRemovedFromTree(oldChild);
133 RenderCounter::destroyCounterNodes(oldChild);
134 RenderQuote::rendererRemovedFromTree(oldChild); 133 RenderQuote::rendererRemovedFromTree(oldChild);
135 134
136 if (AXObjectCache::accessibilityEnabled()) 135 if (AXObjectCache::accessibilityEnabled())
137 owner->document()->axObjectCache()->childrenChanged(owner); 136 owner->document()->axObjectCache()->childrenChanged(owner);
138 137
139 return oldChild; 138 return oldChild;
140 } 139 }
141 140
142 void RenderObjectChildList::appendChildNode(RenderObject* owner, RenderObject* n ewChild, bool fullAppend) 141 void RenderObjectChildList::appendChildNode(RenderObject* owner, RenderObject* n ewChild, bool fullAppend)
143 { 142 {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 465 }
467 if (generatedContentContainer->isChildAllowed(renderer, pseudoElemen tStyle)) 466 if (generatedContentContainer->isChildAllowed(renderer, pseudoElemen tStyle))
468 generatedContentContainer->addChild(renderer); 467 generatedContentContainer->addChild(renderer);
469 else 468 else
470 renderer->destroy(); 469 renderer->destroy();
471 } 470 }
472 } 471 }
473 } 472 }
474 473
475 } // namespace WebCore 474 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698