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

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

Issue 10409080: Merge 116683 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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
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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698