| 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) 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 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // If the given offset is at a page boundary, using AssociateWithLatterPage
as PageBoundaryRule | 466 // If the given offset is at a page boundary, using AssociateWithLatterPage
as PageBoundaryRule |
| 467 // will move us one page ahead (since the offset is at the top of the "curre
nt" page). Using | 467 // will move us one page ahead (since the offset is at the top of the "curre
nt" page). Using |
| 468 // AssociateWithFormerPage instead will keep us where we are (since the offs
et is at the bottom | 468 // AssociateWithFormerPage instead will keep us where we are (since the offs
et is at the bottom |
| 469 // of the "current" page, which is exactly the same offset as the top offset
on the next page). | 469 // of the "current" page, which is exactly the same offset as the top offset
on the next page). |
| 470 // | 470 // |
| 471 // For a page height of 800px, AssociateWithLatterPage will return 1600 if t
he value passed in | 471 // For a page height of 800px, AssociateWithLatterPage will return 1600 if t
he value passed in |
| 472 // is 800. AssociateWithFormerPage will simply return 800. | 472 // is 800. AssociateWithFormerPage will simply return 800. |
| 473 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule) co
nst; | 473 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule) co
nst; |
| 474 | 474 |
| 475 // Paginated content inside this block was laid out. | 475 // Paginated content inside this block was laid out. |
| 476 // |logicalTopOffsetAfterPagination| is the logical top offset of the child
content after | 476 // |logicalBottomOffsetAfterPagination| is the logical bottom offset of the
child content after |
| 477 // applying any forced or unforced break, if needed. | 477 // applying any forced or unforced breaks as needed. |
| 478 void paginatedContentWasLaidOut(LayoutUnit logicalTopOffsetAfterPagination); | 478 void paginatedContentWasLaidOut(LayoutUnit logicalBottomOffsetAfterPaginatio
n); |
| 479 | 479 |
| 480 // Adjust from painting offsets to the local coords of this layoutObject | 480 // Adjust from painting offsets to the local coords of this layoutObject |
| 481 void offsetForContents(LayoutPoint&) const; | 481 void offsetForContents(LayoutPoint&) const; |
| 482 | 482 |
| 483 virtual bool updateLogicalWidthAndColumnWidth(); | 483 virtual bool updateLogicalWidthAndColumnWidth(); |
| 484 | 484 |
| 485 virtual bool canCollapseAnonymousBlockChild() const { return true; } | 485 virtual bool canCollapseAnonymousBlockChild() const { return true; } |
| 486 | 486 |
| 487 LayoutObjectChildList m_children; | 487 LayoutObjectChildList m_children; |
| 488 LineBoxList m_lineBoxes; // All of the root line boxes created for this bloc
k flow. For example, <div>Hello<br>world.</div> will have two total lines for t
he <div>. | 488 LineBoxList m_lineBoxes; // All of the root line boxes created for this bloc
k flow. For example, <div>Hello<br>world.</div> will have two total lines for t
he <div>. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 505 // FIXME: This is temporary as we move code that accesses block flow | 505 // FIXME: This is temporary as we move code that accesses block flow |
| 506 // member variables out of LayoutBlock and into LayoutBlockFlow. | 506 // member variables out of LayoutBlock and into LayoutBlockFlow. |
| 507 friend class LayoutBlockFlow; | 507 friend class LayoutBlockFlow; |
| 508 }; | 508 }; |
| 509 | 509 |
| 510 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 510 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 511 | 511 |
| 512 } // namespace blink | 512 } // namespace blink |
| 513 | 513 |
| 514 #endif // LayoutBlock_h | 514 #endif // LayoutBlock_h |
| OLD | NEW |