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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 RenderBlock* clone() const; | 513 RenderBlock* clone() const; |
514 RenderBlock* continuationBefore(RenderObject* beforeChild); | 514 RenderBlock* continuationBefore(RenderObject* beforeChild); |
515 RenderBlockFlow* containingColumnsBlock(bool allowAnonymousColumnBlock = tru
e); | 515 RenderBlockFlow* containingColumnsBlock(bool allowAnonymousColumnBlock = tru
e); |
516 RenderBlockFlow* columnsBlockForSpanningElement(RenderObject* newChild); | 516 RenderBlockFlow* columnsBlockForSpanningElement(RenderObject* newChild); |
517 | 517 |
518 // End helper functions and structs used by layoutBlockChildren. | 518 // End helper functions and structs used by layoutBlockChildren. |
519 | 519 |
520 protected: | 520 protected: |
521 void determineLogicalLeftPositionForChild(RenderBox* child, ApplyLayoutDelta
Mode = DoNotApplyLayoutDelta); | 521 void determineLogicalLeftPositionForChild(RenderBox* child, ApplyLayoutDelta
Mode = DoNotApplyLayoutDelta); |
522 | 522 |
523 // Pagination routines. | |
524 bool relayoutToAvoidWidows(LayoutStateMaintainer&); | |
525 | |
526 // Returns the logicalOffset at the top of the next page. If the offset pass
ed in is already at the top of the current page, | 523 // Returns the logicalOffset at the top of the next page. If the offset pass
ed in is already at the top of the current page, |
527 // then nextPageLogicalTop with ExcludePageBoundary will still move to the t
op of the next page. nextPageLogicalTop with | 524 // then nextPageLogicalTop with ExcludePageBoundary will still move to the t
op of the next page. nextPageLogicalTop with |
528 // IncludePageBoundary set will not. | 525 // IncludePageBoundary set will not. |
529 // | 526 // |
530 // For a page height of 800px, the first rule will return 800 if the value p
assed in is 0. The second rule will simply return 0. | 527 // For a page height of 800px, the first rule will return 800 if the value p
assed in is 0. The second rule will simply return 0. |
531 enum PageBoundaryRule { ExcludePageBoundary, IncludePageBoundary }; | 528 enum PageBoundaryRule { ExcludePageBoundary, IncludePageBoundary }; |
532 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; | 529 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; |
533 bool hasNextPage(LayoutUnit logicalOffset, PageBoundaryRule = ExcludePageBou
ndary) const; | 530 bool hasNextPage(LayoutUnit logicalOffset, PageBoundaryRule = ExcludePageBou
ndary) const; |
534 | 531 |
535 virtual ColumnInfo::PaginationUnit paginationUnit() const; | 532 virtual ColumnInfo::PaginationUnit paginationUnit() const; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 return false; | 633 return false; |
637 } | 634 } |
638 return true; | 635 return true; |
639 } | 636 } |
640 | 637 |
641 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 638 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
642 | 639 |
643 } // namespace WebCore | 640 } // namespace WebCore |
644 | 641 |
645 #endif // RenderBlock_h | 642 #endif // RenderBlock_h |
OLD | NEW |