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

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

Issue 7753041: Merge 93794 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | Source/WebCore/rendering/RenderTableRow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 columnsBlockAncestor = toRenderBlock(parent())->containingColumnsBlo ck(false); 660 columnsBlockAncestor = toRenderBlock(parent())->containingColumnsBlo ck(false);
661 } 661 }
662 return columnsBlockAncestor; 662 return columnsBlockAncestor;
663 } 663 }
664 664
665 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild) 665 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
666 { 666 {
667 // Make sure we don't append things after :after-generated content if we hav e it. 667 // Make sure we don't append things after :after-generated content if we hav e it.
668 if (!beforeChild) { 668 if (!beforeChild) {
669 RenderObject* lastRenderer = lastChild(); 669 RenderObject* lastRenderer = lastChild();
670 if (isAfterContent(lastRenderer)) 670 while (lastRenderer && lastRenderer->isAnonymous() && !isAfterContent(la stRenderer))
671 lastRenderer = lastRenderer->lastChild();
672 if (lastRenderer && isAfterContent(lastRenderer))
671 beforeChild = lastRenderer; 673 beforeChild = lastRenderer;
672 else if (lastRenderer && lastRenderer->isAnonymousBlock() && isAfterCont ent(lastRenderer->lastChild()))
673 beforeChild = lastRenderer->lastChild();
674 } 674 }
675 675
676 // If the requested beforeChild is not one of our children, then this is bec ause 676 // If the requested beforeChild is not one of our children, then this is bec ause
677 // there is an anonymous container within this object that contains the befo reChild. 677 // there is an anonymous container within this object that contains the befo reChild.
678 if (beforeChild && beforeChild->parent() != this) { 678 if (beforeChild && beforeChild->parent() != this) {
679 RenderObject* anonymousChild = beforeChild->parent(); 679 RenderObject* anonymousChild = beforeChild->parent();
680 ASSERT(anonymousChild); 680 ASSERT(anonymousChild);
681 681
682 while (anonymousChild->parent() != this) 682 while (anonymousChild->parent() != this)
683 anonymousChild = anonymousChild->parent(); 683 anonymousChild = anonymousChild->parent();
(...skipping 5718 matching lines...) Expand 10 before | Expand all | Expand 10 after
6402 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 6402 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
6403 { 6403 {
6404 showRenderObject(); 6404 showRenderObject();
6405 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 6405 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
6406 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 6406 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
6407 } 6407 }
6408 6408
6409 #endif 6409 #endif
6410 6410
6411 } // namespace WebCore 6411 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/rendering/RenderTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698