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

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

Issue 8666016: Merge 100630 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 } 667 }
668 } 668 }
669 } 669 }
670 return columnsBlockAncestor; 670 return columnsBlockAncestor;
671 } 671 }
672 672
673 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild) 673 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
674 { 674 {
675 // Make sure we don't append things after :after-generated content if we hav e it. 675 // Make sure we don't append things after :after-generated content if we hav e it.
676 if (!beforeChild) 676 if (!beforeChild)
677 beforeChild = findAfterContentRenderer(); 677 beforeChild = afterPseudoElementRenderer();
678 678
679 // If the requested beforeChild is not one of our children, then this is bec ause 679 // If the requested beforeChild is not one of our children, then this is bec ause
680 // there is an anonymous container within this object that contains the befo reChild. 680 // there is an anonymous container within this object that contains the befo reChild.
681 if (beforeChild && beforeChild->parent() != this) { 681 if (beforeChild && beforeChild->parent() != this) {
682 RenderObject* beforeChildAnonymousContainer = anonymousContainer(beforeC hild); 682 RenderObject* beforeChildAnonymousContainer = anonymousContainer(beforeC hild);
683 ASSERT(beforeChildAnonymousContainer); 683 ASSERT(beforeChildAnonymousContainer);
684 ASSERT(beforeChildAnonymousContainer->isAnonymous()); 684 ASSERT(beforeChildAnonymousContainer->isAnonymous());
685 685
686 if (beforeChildAnonymousContainer->isAnonymousBlock()) { 686 if (beforeChildAnonymousContainer->isAnonymousBlock()) {
687 // Insert the child into the anonymous block box instead of here. 687 // Insert the child into the anonymous block box instead of here.
(...skipping 6220 matching lines...) Expand 10 before | Expand all | Expand 10 after
6908 } 6908 }
6909 6909
6910 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject) 6910 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject)
6911 { 6911 {
6912 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x( ), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY()); 6912 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x( ), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY());
6913 } 6913 }
6914 6914
6915 #endif 6915 #endif
6916 6916
6917 } // namespace WebCore 6917 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698