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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; | 469 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule = E
xcludePageBoundary) const; |
470 | 470 |
471 bool createsBlockFormattingContext() const; | 471 bool createsBlockFormattingContext() const; |
472 | 472 |
473 public: | 473 public: |
474 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; | 474 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; |
475 LayoutUnit pageLogicalHeightForOffset(LayoutUnit offset) const; | 475 LayoutUnit pageLogicalHeightForOffset(LayoutUnit offset) const; |
476 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit offset, PageBounda
ryRule = IncludePageBoundary) const; | 476 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit offset, PageBounda
ryRule = IncludePageBoundary) const; |
477 | 477 |
478 protected: | 478 protected: |
479 bool pushToNextPageWithMinimumLogicalHeight(LayoutUnit& adjustment, LayoutUn
it logicalOffset, LayoutUnit minimumLogicalHeight) const; | |
480 | |
481 // A page break is required at some offset due to space shortage in the curr
ent fragmentainer. | 479 // A page break is required at some offset due to space shortage in the curr
ent fragmentainer. |
482 void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage); | 480 void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage); |
483 | 481 |
484 // Update minimum page height required to avoid fragmentation where it shoul
dn't occur (inside | 482 // Update minimum page height required to avoid fragmentation where it shoul
dn't occur (inside |
485 // unbreakable content, between orphans and widows, etc.). This will be used
as a hint to the | 483 // unbreakable content, between orphans and widows, etc.). This will be used
as a hint to the |
486 // column balancer to help set a good minimum column height. | 484 // column balancer to help set a good minimum column height. |
487 void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight); | 485 void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight); |
488 | 486 |
489 LayoutUnit adjustForUnsplittableChild(RenderBox* child, LayoutUnit logicalOf
fset, bool includeMargins = false); // If the child is unsplittable and can't fi
t on the current page, return the top of the next page/column. | 487 LayoutUnit adjustForUnsplittableChild(RenderBox* child, LayoutUnit logicalOf
fset, bool includeMargins = false); // If the child is unsplittable and can't fi
t on the current page, return the top of the next page/column. |
490 void adjustLinePositionForPagination(RootInlineBox*, LayoutUnit& deltaOffset
, RenderFlowThread*); // Computes a deltaOffset value that put a line at the top
of the next page if it doesn't fit on the current page. | 488 void adjustLinePositionForPagination(RootInlineBox*, LayoutUnit& deltaOffset
, RenderFlowThread*); // Computes a deltaOffset value that put a line at the top
of the next page if it doesn't fit on the current page. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 // FIXME: This is temporary as we move code that accesses block flow | 546 // FIXME: This is temporary as we move code that accesses block flow |
549 // member variables out of RenderBlock and into RenderBlockFlow. | 547 // member variables out of RenderBlock and into RenderBlockFlow. |
550 friend class RenderBlockFlow; | 548 friend class RenderBlockFlow; |
551 }; | 549 }; |
552 | 550 |
553 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 551 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
554 | 552 |
555 } // namespace WebCore | 553 } // namespace WebCore |
556 | 554 |
557 #endif // RenderBlock_h | 555 #endif // RenderBlock_h |
OLD | NEW |