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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 RenderBlock* clone() const; | 517 RenderBlock* clone() const; |
518 RenderBlock* continuationBefore(RenderObject* beforeChild); | 518 RenderBlock* continuationBefore(RenderObject* beforeChild); |
519 RenderBlockFlow* containingColumnsBlock(bool allowAnonymousColumnBlock = tru
e); | 519 RenderBlockFlow* containingColumnsBlock(bool allowAnonymousColumnBlock = tru
e); |
520 RenderBlockFlow* columnsBlockForSpanningElement(RenderObject* newChild); | 520 RenderBlockFlow* columnsBlockForSpanningElement(RenderObject* newChild); |
521 | 521 |
522 // End helper functions and structs used by layoutBlockChildren. | 522 // End helper functions and structs used by layoutBlockChildren. |
523 | 523 |
524 protected: | 524 protected: |
525 void determineLogicalLeftPositionForChild(RenderBox* child, ApplyLayoutDelta
Mode = DoNotApplyLayoutDelta); | 525 void determineLogicalLeftPositionForChild(RenderBox* child, ApplyLayoutDelta
Mode = DoNotApplyLayoutDelta); |
526 | 526 |
527 // Pagination routines. | |
528 bool relayoutToAvoidWidows(LayoutStateMaintainer&); | |
529 | |
530 // 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 // 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, |
531 // then nextPageLogicalTop with ExcludePageBoundary will still move to the t
op of the next page. nextPageLogicalTop with | 528 // then nextPageLogicalTop with ExcludePageBoundary will still move to the t
op of the next page. nextPageLogicalTop with |
532 // IncludePageBoundary set will not. | 529 // IncludePageBoundary set will not. |
533 // | 530 // |
534 // 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 // 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. |
535 enum PageBoundaryRule { ExcludePageBoundary, IncludePageBoundary }; | 532 enum PageBoundaryRule { ExcludePageBoundary, IncludePageBoundary }; |
536 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; | 533 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; |
537 bool hasNextPage(LayoutUnit logicalOffset, PageBoundaryRule = ExcludePageBou
ndary) const; | 534 bool hasNextPage(LayoutUnit logicalOffset, PageBoundaryRule = ExcludePageBou
ndary) const; |
538 | 535 |
539 virtual ColumnInfo::PaginationUnit paginationUnit() const; | 536 virtual ColumnInfo::PaginationUnit paginationUnit() const; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 return false; | 635 return false; |
639 } | 636 } |
640 return true; | 637 return true; |
641 } | 638 } |
642 | 639 |
643 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 640 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
644 | 641 |
645 } // namespace WebCore | 642 } // namespace WebCore |
646 | 643 |
647 #endif // RenderBlock_h | 644 #endif // RenderBlock_h |
OLD | NEW |