| 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, 2008, 2009, 2010, 2013 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 10 * | 10 * |
| (...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2060 SubtreeLayoutScope& layouter) { | 2060 SubtreeLayoutScope& layouter) { |
| 2061 row_object.SetPaginationStrut(LayoutUnit()); | 2061 row_object.SetPaginationStrut(LayoutUnit()); |
| 2062 row_object.SetLogicalHeight(LayoutUnit(LogicalHeightForRow(row_object))); | 2062 row_object.SetLogicalHeight(LayoutUnit(LogicalHeightForRow(row_object))); |
| 2063 int pagination_strut = | 2063 int pagination_strut = |
| 2064 PaginationStrutForRow(&row_object, row_object.LogicalTop()); | 2064 PaginationStrutForRow(&row_object, row_object.LogicalTop()); |
| 2065 bool row_is_at_top_of_column = false; | 2065 bool row_is_at_top_of_column = false; |
| 2066 LayoutUnit offset_from_top_of_page; | 2066 LayoutUnit offset_from_top_of_page; |
| 2067 if (!pagination_strut) { | 2067 if (!pagination_strut) { |
| 2068 LayoutUnit page_logical_height = | 2068 LayoutUnit page_logical_height = |
| 2069 PageLogicalHeightForOffset(row_object.LogicalTop()); | 2069 PageLogicalHeightForOffset(row_object.LogicalTop()); |
| 2070 if (page_logical_height && Table()->Header() && | 2070 if (page_logical_height && Table()->Header() && Table()->Header() != this && |
| 2071 Table()->RowOffsetFromRepeatingHeader()) { | 2071 Table()->RowOffsetFromRepeatingHeader()) { |
| 2072 offset_from_top_of_page = | 2072 offset_from_top_of_page = |
| 2073 page_logical_height - | 2073 page_logical_height - |
| 2074 PageRemainingLogicalHeightForOffset(row_object.LogicalTop(), | 2074 PageRemainingLogicalHeightForOffset(row_object.LogicalTop(), |
| 2075 kAssociateWithLatterPage); | 2075 kAssociateWithLatterPage); |
| 2076 row_is_at_top_of_column = | 2076 row_is_at_top_of_column = |
| 2077 !offset_from_top_of_page || | 2077 !offset_from_top_of_page || |
| 2078 offset_from_top_of_page <= Table()->VBorderSpacing(); | 2078 offset_from_top_of_page <= Table()->VBorderSpacing(); |
| 2079 } | 2079 } |
| 2080 | 2080 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2167 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() | 2167 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() |
| 2168 const { | 2168 const { |
| 2169 // LayoutTableSection paints background from columns. | 2169 // LayoutTableSection paints background from columns. |
| 2170 if (Table()->HasColElements()) | 2170 if (Table()->HasColElements()) |
| 2171 return false; | 2171 return false; |
| 2172 return LayoutTableBoxComponent:: | 2172 return LayoutTableBoxComponent:: |
| 2173 PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 2173 PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 } // namespace blink | 2176 } // namespace blink |
| OLD | NEW |