| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |