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. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 bool isInlineBoxWrapperActuallyChild() const; | 498 bool isInlineBoxWrapperActuallyChild() const; |
499 | 499 |
500 Position positionForBox(InlineBox*, bool start = true) const; | 500 Position positionForBox(InlineBox*, bool start = true) const; |
501 | 501 |
502 // End helper functions and structs used by layoutBlockChildren. | 502 // End helper functions and structs used by layoutBlockChildren. |
503 | 503 |
504 void removeFromGlobalMaps(); | 504 void removeFromGlobalMaps(); |
505 bool widthAvailableToChildrenHasChanged(); | 505 bool widthAvailableToChildrenHasChanged(); |
506 | 506 |
507 protected: | 507 protected: |
508 bool isPageLogicalHeightKnown(LayoutUnit logicalOffset) const { | 508 bool isPageLogicalHeightKnown() const { |
509 return pageLogicalHeightForOffset(logicalOffset); | 509 return pageLogicalHeightForOffset(LayoutUnit()); |
510 } | 510 } |
511 | 511 |
512 // Returns the logical offset at the top of the next page, for a given offset. | 512 // Returns the logical offset at the top of the next page, for a given offset. |
513 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset) const; | 513 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset) const; |
514 | 514 |
515 // Paginated content inside this block was laid out. | 515 // Paginated content inside this block was laid out. |
516 // |logicalBottomOffsetAfterPagination| is the logical bottom offset of the | 516 // |logicalBottomOffsetAfterPagination| is the logical bottom offset of the |
517 // child content after applying any forced or unforced breaks as needed. | 517 // child content after applying any forced or unforced breaks as needed. |
518 void paginatedContentWasLaidOut( | 518 void paginatedContentWasLaidOut( |
519 LayoutUnit logicalBottomOffsetAfterPagination); | 519 LayoutUnit logicalBottomOffsetAfterPagination); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // TODO(lunalu): Temporary in order to ensure compatibility with existing | 566 // TODO(lunalu): Temporary in order to ensure compatibility with existing |
567 // layout test results. | 567 // layout test results. |
568 virtual void adjustChildDebugRect(LayoutRect&) const {} | 568 virtual void adjustChildDebugRect(LayoutRect&) const {} |
569 }; | 569 }; |
570 | 570 |
571 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 571 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
572 | 572 |
573 } // namespace blink | 573 } // namespace blink |
574 | 574 |
575 #endif // LayoutBlock_h | 575 #endif // LayoutBlock_h |
OLD | NEW |