| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return first_body_; | 197 return first_body_; |
| 198 } | 198 } |
| 199 | 199 |
| 200 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { | 200 void SetRowOffsetFromRepeatingHeader(LayoutUnit offset) { |
| 201 row_offset_from_repeating_header_ = offset; | 201 row_offset_from_repeating_header_ = offset; |
| 202 } | 202 } |
| 203 LayoutUnit RowOffsetFromRepeatingHeader() const { | 203 LayoutUnit RowOffsetFromRepeatingHeader() const { |
| 204 return row_offset_from_repeating_header_; | 204 return row_offset_from_repeating_header_; |
| 205 } | 205 } |
| 206 | 206 |
| 207 void SetRowOffsetFromRepeatingFooter(LayoutUnit offset) { |
| 208 row_offset_from_repeating_footer_ = offset; |
| 209 } |
| 210 LayoutUnit RowOffsetFromRepeatingFooter() const { |
| 211 return row_offset_from_repeating_footer_; |
| 212 } |
| 213 |
| 207 // These functions return nullptr if the table has no sections. | 214 // These functions return nullptr if the table has no sections. |
| 208 LayoutTableSection* TopSection() const; | 215 LayoutTableSection* TopSection() const; |
| 209 LayoutTableSection* BottomSection() const; | 216 LayoutTableSection* BottomSection() const; |
| 210 | 217 |
| 211 // These functions return nullptr if the table has no non-empty sections. | 218 // These functions return nullptr if the table has no non-empty sections. |
| 212 LayoutTableSection* TopNonEmptySection() const; | 219 LayoutTableSection* TopNonEmptySection() const; |
| 213 LayoutTableSection* BottomNonEmptySection() const; | 220 LayoutTableSection* BottomNonEmptySection() const; |
| 214 | 221 |
| 215 unsigned LastEffectiveColumnIndex() const { | 222 unsigned LastEffectiveColumnIndex() const { |
| 216 return NumEffectiveColumns() - 1; | 223 return NumEffectiveColumns() - 1; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 short h_spacing_; | 570 short h_spacing_; |
| 564 short v_spacing_; | 571 short v_spacing_; |
| 565 | 572 |
| 566 mutable unsigned collapsed_outer_border_start_; | 573 mutable unsigned collapsed_outer_border_start_; |
| 567 mutable unsigned collapsed_outer_border_end_; | 574 mutable unsigned collapsed_outer_border_end_; |
| 568 mutable unsigned collapsed_outer_border_before_; | 575 mutable unsigned collapsed_outer_border_before_; |
| 569 mutable unsigned collapsed_outer_border_after_; | 576 mutable unsigned collapsed_outer_border_after_; |
| 570 | 577 |
| 571 LayoutUnit block_offset_to_first_repeatable_header_; | 578 LayoutUnit block_offset_to_first_repeatable_header_; |
| 572 LayoutUnit row_offset_from_repeating_header_; | 579 LayoutUnit row_offset_from_repeating_header_; |
| 580 LayoutUnit row_offset_from_repeating_footer_; |
| 573 LayoutUnit old_available_logical_height_; | 581 LayoutUnit old_available_logical_height_; |
| 574 }; | 582 }; |
| 575 | 583 |
| 576 inline LayoutTableSection* LayoutTable::TopSection() const { | 584 inline LayoutTableSection* LayoutTable::TopSection() const { |
| 577 DCHECK(!NeedsSectionRecalc()); | 585 DCHECK(!NeedsSectionRecalc()); |
| 578 if (head_) | 586 if (head_) |
| 579 return head_; | 587 return head_; |
| 580 if (first_body_) | 588 if (first_body_) |
| 581 return first_body_; | 589 return first_body_; |
| 582 return foot_; | 590 return foot_; |
| 583 } | 591 } |
| 584 | 592 |
| 585 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); | 593 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, IsTable()); |
| 586 | 594 |
| 587 } // namespace blink | 595 } // namespace blink |
| 588 | 596 |
| 589 #endif // LayoutTable_h | 597 #endif // LayoutTable_h |
| OLD | NEW |