OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. |
8 * All rights reserved. | 8 * All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 return first_body_; | 227 return first_body_; |
228 } | 228 } |
229 | 229 |
230 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { | 230 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { |
231 row_offset_from_repeating_header_ = offset; | 231 row_offset_from_repeating_header_ = offset; |
232 } | 232 } |
233 LayoutUnit RowOffsetFromRepeatingHeader() const { | 233 LayoutUnit RowOffsetFromRepeatingHeader() const { |
234 return row_offset_from_repeating_header_; | 234 return row_offset_from_repeating_header_; |
235 } | 235 } |
236 | 236 |
| 237 void SetRowOffsetFromRepeatingFooter(LayoutUnit offset) { |
| 238 row_offset_from_repeating_footer_ = offset; |
| 239 } |
| 240 LayoutUnit RowOffsetFromRepeatingFooter() const { |
| 241 return row_offset_from_repeating_footer_; |
| 242 } |
| 243 |
237 // These functions return nullptr if the table has no sections. | 244 // These functions return nullptr if the table has no sections. |
238 LayoutTableSection* TopSection() const; | 245 LayoutTableSection* TopSection() const; |
239 LayoutTableSection* BottomSection() const; | 246 LayoutTableSection* BottomSection() const; |
240 | 247 |
241 // These functions return nullptr if the table has no non-empty sections. | 248 // These functions return nullptr if the table has no non-empty sections. |
242 LayoutTableSection* TopNonEmptySection() const; | 249 LayoutTableSection* TopNonEmptySection() const; |
243 LayoutTableSection* BottomNonEmptySection() const; | 250 LayoutTableSection* BottomNonEmptySection() const; |
244 | 251 |
245 unsigned LastEffectiveColumnIndex() const { | 252 unsigned LastEffectiveColumnIndex() const { |
246 return NumEffectiveColumns() - 1; | 253 return NumEffectiveColumns() - 1; |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 short h_spacing_; | 600 short h_spacing_; |
594 short v_spacing_; | 601 short v_spacing_; |
595 | 602 |
596 mutable unsigned collapsed_outer_border_start_; | 603 mutable unsigned collapsed_outer_border_start_; |
597 mutable unsigned collapsed_outer_border_end_; | 604 mutable unsigned collapsed_outer_border_end_; |
598 mutable unsigned collapsed_outer_border_before_; | 605 mutable unsigned collapsed_outer_border_before_; |
599 mutable unsigned collapsed_outer_border_after_; | 606 mutable unsigned collapsed_outer_border_after_; |
600 | 607 |
601 LayoutUnit block_offset_to_first_repeatable_header_; | 608 LayoutUnit block_offset_to_first_repeatable_header_; |
602 LayoutUnit row_offset_from_repeating_header_; | 609 LayoutUnit row_offset_from_repeating_header_; |
| 610 LayoutUnit row_offset_from_repeating_footer_; |
603 LayoutUnit old_available_logical_height_; | 611 LayoutUnit old_available_logical_height_; |
604 }; | 612 }; |
605 | 613 |
606 inline LayoutTableSection* LayoutTable::TopSection() const { | 614 inline LayoutTableSection* LayoutTable::TopSection() const { |
607 DCHECK(!NeedsSectionRecalc()); | 615 DCHECK(!NeedsSectionRecalc()); |
608 if (head_) | 616 if (head_) |
609 return head_; | 617 return head_; |
610 if (first_body_) | 618 if (first_body_) |
611 return first_body_; | 619 return first_body_; |
612 return foot_; | 620 return foot_; |
613 } | 621 } |
614 | 622 |
615 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); | 623 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); |
616 | 624 |
617 } // namespace blink | 625 } // namespace blink |
618 | 626 |
619 #endif // LayoutTable_h | 627 #endif // LayoutTable_h |
OLD | NEW |