OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 LayoutUnit PageLogicalOffset(const LayoutBox&, | 83 LayoutUnit PageLogicalOffset(const LayoutBox&, |
84 const LayoutUnit& child_logical_offset) const; | 84 const LayoutUnit& child_logical_offset) const; |
85 | 85 |
86 LayoutUnit HeightOffsetForTableHeaders() const { | 86 LayoutUnit HeightOffsetForTableHeaders() const { |
87 return height_offset_for_table_headers_; | 87 return height_offset_for_table_headers_; |
88 } | 88 } |
89 void SetHeightOffsetForTableHeaders(LayoutUnit offset) { | 89 void SetHeightOffsetForTableHeaders(LayoutUnit offset) { |
90 height_offset_for_table_headers_ = offset; | 90 height_offset_for_table_headers_ = offset; |
91 } | 91 } |
92 | 92 |
| 93 LayoutUnit HeightOffsetForTableFooters() const { |
| 94 return height_offset_for_table_footers_; |
| 95 } |
| 96 void SetHeightOffsetForTableFooters(LayoutUnit offset) { |
| 97 height_offset_for_table_footers_ = offset; |
| 98 } |
| 99 |
93 const LayoutSize& PaginationOffset() const { return pagination_offset_; } | 100 const LayoutSize& PaginationOffset() const { return pagination_offset_; } |
94 bool ContainingBlockLogicalWidthChanged() const { | 101 bool ContainingBlockLogicalWidthChanged() const { |
95 return containing_block_logical_width_changed_; | 102 return containing_block_logical_width_changed_; |
96 } | 103 } |
97 | 104 |
98 bool PaginationStateChanged() const { return pagination_state_changed_; } | 105 bool PaginationStateChanged() const { return pagination_state_changed_; } |
99 void SetPaginationStateChanged() { pagination_state_changed_ = true; } | 106 void SetPaginationStateChanged() { pagination_state_changed_ = true; } |
100 | 107 |
101 LayoutState* Next() const { return next_; } | 108 LayoutState* Next() const { return next_; } |
102 | 109 |
(...skipping 14 matching lines...) Expand all Loading... |
117 LayoutState* next_; | 124 LayoutState* next_; |
118 | 125 |
119 // x/y offset from the logical top / start of the first page. Does not include | 126 // x/y offset from the logical top / start of the first page. Does not include |
120 // relative positioning or scroll offsets. | 127 // relative positioning or scroll offsets. |
121 LayoutSize pagination_offset_; | 128 LayoutSize pagination_offset_; |
122 | 129 |
123 // The height we need to make available for repeating table headers in | 130 // The height we need to make available for repeating table headers in |
124 // paginated layout. | 131 // paginated layout. |
125 LayoutUnit height_offset_for_table_headers_; | 132 LayoutUnit height_offset_for_table_headers_; |
126 | 133 |
| 134 // The height we need to make available for repeating table footers in |
| 135 // paginated layout. |
| 136 LayoutUnit height_offset_for_table_footers_; |
| 137 |
127 LayoutObject& layout_object_; | 138 LayoutObject& layout_object_; |
128 }; | 139 }; |
129 | 140 |
130 } // namespace blink | 141 } // namespace blink |
131 | 142 |
132 #endif // LayoutState_h | 143 #endif // LayoutState_h |
OLD | NEW |