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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 4623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4634 { | 4634 { |
4635 // FIXME: The table code should handle that automatically. If not, | 4635 // FIXME: The table code should handle that automatically. If not, |
4636 // we should fix it and remove the table part checks. | 4636 // we should fix it and remove the table part checks. |
4637 if (box->isTable()) { | 4637 if (box->isTable()) { |
4638 // Because we may have added some sections with already computed column
structures, we need to | 4638 // Because we may have added some sections with already computed column
structures, we need to |
4639 // sync the table structure with them now. This avoids crashes when addi
ng new cells to the table. | 4639 // sync the table structure with them now. This avoids crashes when addi
ng new cells to the table. |
4640 toRenderTable(box)->forceSectionsRecalc(); | 4640 toRenderTable(box)->forceSectionsRecalc(); |
4641 } else if (box->isTableSection()) | 4641 } else if (box->isTableSection()) |
4642 toRenderTableSection(box)->setNeedsCellRecalc(); | 4642 toRenderTableSection(box)->setNeedsCellRecalc(); |
4643 | 4643 |
4644 box->setNeedsLayoutAndPrefWidthsRecalc(); | 4644 box->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); |
4645 } | 4645 } |
4646 | 4646 |
4647 RenderObject* RenderBox::splitAnonymousBoxesAroundChild(RenderObject* beforeChil
d) | 4647 RenderObject* RenderBox::splitAnonymousBoxesAroundChild(RenderObject* beforeChil
d) |
4648 { | 4648 { |
4649 bool didSplitParentAnonymousBoxes = false; | 4649 bool didSplitParentAnonymousBoxes = false; |
4650 | 4650 |
4651 while (beforeChild->parent() != this) { | 4651 while (beforeChild->parent() != this) { |
4652 RenderBox* boxToSplit = toRenderBox(beforeChild->parent()); | 4652 RenderBox* boxToSplit = toRenderBox(beforeChild->parent()); |
4653 if (boxToSplit->slowFirstChild() != beforeChild && boxToSplit->isAnonymo
us()) { | 4653 if (boxToSplit->slowFirstChild() != beforeChild && boxToSplit->isAnonymo
us()) { |
4654 didSplitParentAnonymousBoxes = true; | 4654 didSplitParentAnonymousBoxes = true; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4687 return 0; | 4687 return 0; |
4688 | 4688 |
4689 if (!layoutState && !flowThreadContainingBlock()) | 4689 if (!layoutState && !flowThreadContainingBlock()) |
4690 return 0; | 4690 return 0; |
4691 | 4691 |
4692 RenderBlock* containerBlock = containingBlock(); | 4692 RenderBlock* containerBlock = containingBlock(); |
4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); | 4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); |
4694 } | 4694 } |
4695 | 4695 |
4696 } // namespace WebCore | 4696 } // namespace WebCore |
OLD | NEW |