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, 2013 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv
ed. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowRenderer
? table()->vBorderSpacing() : 0; } | 254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowRenderer
? table()->vBorderSpacing() : 0; } |
255 | 255 |
256 void ensureRows(unsigned); | 256 void ensureRows(unsigned); |
257 | 257 |
258 bool rowHasOnlySpanningCells(unsigned); | 258 bool rowHasOnlySpanningCells(unsigned); |
259 unsigned calcRowHeightHavingOnlySpanningCells(unsigned, int&, unsigned, unsi
gned&, Vector<int>&); | 259 unsigned calcRowHeightHavingOnlySpanningCells(unsigned, int&, unsigned, unsi
gned&, Vector<int>&); |
260 void updateRowsHeightHavingOnlySpanningCells(LayoutTableCell*, struct Spanni
ngRowsHeight&, unsigned&, Vector<int>&); | 260 void updateRowsHeightHavingOnlySpanningCells(LayoutTableCell*, struct Spanni
ngRowsHeight&, unsigned&, Vector<int>&); |
261 | 261 |
262 void populateSpanningRowsHeightFromCell(LayoutTableCell*, struct SpanningRow
sHeight&); | 262 void populateSpanningRowsHeightFromCell(LayoutTableCell*, struct SpanningRow
sHeight&); |
263 void distributeExtraRowSpanHeightToPercentRows(LayoutTableCell*, int, int&,
Vector<int>&); | 263 void distributeExtraRowSpanHeightToPercentRows(LayoutTableCell*, int, int&,
Vector<int>&); |
264 void distributeWholeExtraRowSpanHeightToPercentRows(LayoutTableCell*, int, i
nt&, Vector<int>&); | 264 void distributeWholeExtraRowSpanHeightToPercentRows(LayoutTableCell*, float,
int&, Vector<int>&); |
265 void distributeExtraRowSpanHeightToAutoRows(LayoutTableCell*, int, int&, Vec
tor<int>&); | 265 void distributeExtraRowSpanHeightToAutoRows(LayoutTableCell*, int, int&, Vec
tor<int>&); |
266 void distributeExtraRowSpanHeightToRemainingRows(LayoutTableCell*, int, int&
, Vector<int>&); | 266 void distributeExtraRowSpanHeightToRemainingRows(LayoutTableCell*, int, int&
, Vector<int>&); |
267 void distributeRowSpanHeightToRows(SpanningLayoutTableCells& rowSpanCells); | 267 void distributeRowSpanHeightToRows(SpanningLayoutTableCells& rowSpanCells); |
268 | 268 |
269 void distributeExtraLogicalHeightToPercentRows(int& extraLogicalHeight, int
totalPercent); | 269 void distributeExtraLogicalHeightToPercentRows(int& extraLogicalHeight, int
totalPercent); |
270 void distributeExtraLogicalHeightToAutoRows(int& extraLogicalHeight, unsigne
d autoRowsCount); | 270 void distributeExtraLogicalHeightToAutoRows(int& extraLogicalHeight, unsigne
d autoRowsCount); |
271 void distributeRemainingExtraLogicalHeight(int& extraLogicalHeight); | 271 void distributeRemainingExtraLogicalHeight(int& extraLogicalHeight); |
272 | 272 |
273 void updateBaselineForCell(LayoutTableCell*, unsigned row, LayoutUnit& basel
ineDescent); | 273 void updateBaselineForCell(LayoutTableCell*, unsigned row, LayoutUnit& basel
ineDescent); |
274 | 274 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // It is held at LayoutTableSection level to spare memory consumption by tab
le cells. | 314 // It is held at LayoutTableSection level to spare memory consumption by tab
le cells. |
315 using CellsCollapsedBordersMap = HashMap<pair<const LayoutTableCell*, int>,
CollapsedBorderValue>; | 315 using CellsCollapsedBordersMap = HashMap<pair<const LayoutTableCell*, int>,
CollapsedBorderValue>; |
316 CellsCollapsedBordersMap m_cellsCollapsedBorders; | 316 CellsCollapsedBordersMap m_cellsCollapsedBorders; |
317 }; | 317 }; |
318 | 318 |
319 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 319 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
320 | 320 |
321 } // namespace blink | 321 } // namespace blink |
322 | 322 |
323 #endif // LayoutTableSection_h | 323 #endif // LayoutTableSection_h |
OLD | NEW |