| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 toRenderBoxModelObject(newChild)->layer()->removeOnlyThisLayer(); | 318 toRenderBoxModelObject(newChild)->layer()->removeOnlyThisLayer(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void RenderObject::removeChild(RenderObject* oldChild) | 321 void RenderObject::removeChild(RenderObject* oldChild) |
| 322 { | 322 { |
| 323 RenderObjectChildList* children = virtualChildren(); | 323 RenderObjectChildList* children = virtualChildren(); |
| 324 ASSERT(children); | 324 ASSERT(children); |
| 325 if (!children) | 325 if (!children) |
| 326 return; | 326 return; |
| 327 | 327 |
| 328 // We do this here instead of in removeChildNode, since the only extremely l
ow-level uses of remove/appendChildNode | |
| 329 // cannot affect the positioned object list, and the floating object list is
irrelevant (since the list gets cleared on | |
| 330 // layout anyway). | |
| 331 if (oldChild->isFloatingOrPositioned()) | |
| 332 toRenderBox(oldChild)->removeFloatingOrPositionedChildFromBlockLists(); | |
| 333 | |
| 334 children->removeChildNode(this, oldChild); | 328 children->removeChildNode(this, oldChild); |
| 335 } | 329 } |
| 336 | 330 |
| 337 RenderObject* RenderObject::nextInPreOrder() const | 331 RenderObject* RenderObject::nextInPreOrder() const |
| 338 { | 332 { |
| 339 if (RenderObject* o = firstChild()) | 333 if (RenderObject* o = firstChild()) |
| 340 return o; | 334 return o; |
| 341 | 335 |
| 342 return nextInPreOrderAfterChildren(); | 336 return nextInPreOrderAfterChildren(); |
| 343 } | 337 } |
| (...skipping 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2891 { | 2885 { |
| 2892 if (object1) { | 2886 if (object1) { |
| 2893 const WebCore::RenderObject* root = object1; | 2887 const WebCore::RenderObject* root = object1; |
| 2894 while (root->parent()) | 2888 while (root->parent()) |
| 2895 root = root->parent(); | 2889 root = root->parent(); |
| 2896 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2890 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 2897 } | 2891 } |
| 2898 } | 2892 } |
| 2899 | 2893 |
| 2900 #endif | 2894 #endif |
| OLD | NEW |