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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 toRenderBoxModelObject(newChild)->layer()->removeOnlyThisLayer(); | 320 toRenderBoxModelObject(newChild)->layer()->removeOnlyThisLayer(); |
321 } | 321 } |
322 | 322 |
323 void RenderObject::removeChild(RenderObject* oldChild) | 323 void RenderObject::removeChild(RenderObject* oldChild) |
324 { | 324 { |
325 RenderObjectChildList* children = virtualChildren(); | 325 RenderObjectChildList* children = virtualChildren(); |
326 ASSERT(children); | 326 ASSERT(children); |
327 if (!children) | 327 if (!children) |
328 return; | 328 return; |
329 | 329 |
330 // We do this here instead of in removeChildNode, since the only extremely l
ow-level uses of remove/appendChildNode | |
331 // cannot affect the positioned object list, and the floating object list is
irrelevant (since the list gets cleared on | |
332 // layout anyway). | |
333 if (oldChild->isFloatingOrPositioned()) | |
334 toRenderBox(oldChild)->removeFloatingOrPositionedChildFromBlockLists(); | |
335 | |
336 children->removeChildNode(this, oldChild); | 330 children->removeChildNode(this, oldChild); |
337 } | 331 } |
338 | 332 |
339 RenderObject* RenderObject::nextInPreOrder() const | 333 RenderObject* RenderObject::nextInPreOrder() const |
340 { | 334 { |
341 if (RenderObject* o = firstChild()) | 335 if (RenderObject* o = firstChild()) |
342 return o; | 336 return o; |
343 | 337 |
344 return nextInPreOrderAfterChildren(); | 338 return nextInPreOrderAfterChildren(); |
345 } | 339 } |
(...skipping 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2943 { | 2937 { |
2944 if (object1) { | 2938 if (object1) { |
2945 const WebCore::RenderObject* root = object1; | 2939 const WebCore::RenderObject* root = object1; |
2946 while (root->parent()) | 2940 while (root->parent()) |
2947 root = root->parent(); | 2941 root = root->parent(); |
2948 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2942 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
2949 } | 2943 } |
2950 } | 2944 } |
2951 | 2945 |
2952 #endif | 2946 #endif |
OLD | NEW |