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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 return first_body_; | 226 return first_body_; |
227 } | 227 } |
228 | 228 |
229 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { | 229 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { |
230 row_offset_from_repeating_header_ = offset; | 230 row_offset_from_repeating_header_ = offset; |
231 } | 231 } |
232 LayoutUnit RowOffsetFromRepeatingHeader() const { | 232 LayoutUnit RowOffsetFromRepeatingHeader() const { |
233 return row_offset_from_repeating_header_; | 233 return row_offset_from_repeating_header_; |
234 } | 234 } |
235 | 235 |
| 236 void SetRowOffsetFromRepeatingFooter(LayoutUnit offset) { |
| 237 row_offset_from_repeating_footer_ = offset; |
| 238 } |
| 239 LayoutUnit RowOffsetFromRepeatingFooter() const { |
| 240 return row_offset_from_repeating_footer_; |
| 241 } |
| 242 |
236 // These functions return nullptr if the table has no sections. | 243 // These functions return nullptr if the table has no sections. |
237 LayoutTableSection* TopSection() const; | 244 LayoutTableSection* TopSection() const; |
238 LayoutTableSection* BottomSection() const; | 245 LayoutTableSection* BottomSection() const; |
239 | 246 |
240 // These functions return nullptr if the table has no non-empty sections. | 247 // These functions return nullptr if the table has no non-empty sections. |
241 LayoutTableSection* TopNonEmptySection() const; | 248 LayoutTableSection* TopNonEmptySection() const; |
242 LayoutTableSection* BottomNonEmptySection() const; | 249 LayoutTableSection* BottomNonEmptySection() const; |
243 | 250 |
244 unsigned LastEffectiveColumnIndex() const { | 251 unsigned LastEffectiveColumnIndex() const { |
245 return NumEffectiveColumns() - 1; | 252 return NumEffectiveColumns() - 1; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 short h_spacing_; | 588 short h_spacing_; |
582 short v_spacing_; | 589 short v_spacing_; |
583 | 590 |
584 mutable unsigned collapsed_outer_border_start_; | 591 mutable unsigned collapsed_outer_border_start_; |
585 mutable unsigned collapsed_outer_border_end_; | 592 mutable unsigned collapsed_outer_border_end_; |
586 mutable unsigned collapsed_outer_border_before_; | 593 mutable unsigned collapsed_outer_border_before_; |
587 mutable unsigned collapsed_outer_border_after_; | 594 mutable unsigned collapsed_outer_border_after_; |
588 | 595 |
589 LayoutUnit block_offset_to_first_repeatable_header_; | 596 LayoutUnit block_offset_to_first_repeatable_header_; |
590 LayoutUnit row_offset_from_repeating_header_; | 597 LayoutUnit row_offset_from_repeating_header_; |
| 598 LayoutUnit row_offset_from_repeating_footer_; |
591 LayoutUnit old_available_logical_height_; | 599 LayoutUnit old_available_logical_height_; |
592 }; | 600 }; |
593 | 601 |
594 inline LayoutTableSection* LayoutTable::TopSection() const { | 602 inline LayoutTableSection* LayoutTable::TopSection() const { |
595 DCHECK(!NeedsSectionRecalc()); | 603 DCHECK(!NeedsSectionRecalc()); |
596 if (head_) | 604 if (head_) |
597 return head_; | 605 return head_; |
598 if (first_body_) | 606 if (first_body_) |
599 return first_body_; | 607 return first_body_; |
600 return foot_; | 608 return foot_; |
601 } | 609 } |
602 | 610 |
603 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); | 611 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); |
604 | 612 |
605 } // namespace blink | 613 } // namespace blink |
606 | 614 |
607 #endif // LayoutTable_h | 615 #endif // LayoutTable_h |
OLD | NEW |