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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over
ride; | 117 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over
ride; |
118 | 118 |
119 int firstLineBoxBaseline() const override; | 119 int firstLineBoxBaseline() const override; |
120 | 120 |
121 void addCell(LayoutTableCell*, LayoutTableRow*); | 121 void addCell(LayoutTableCell*, LayoutTableRow*); |
122 | 122 |
123 int calcRowLogicalHeight(); | 123 int calcRowLogicalHeight(); |
124 void layoutRows(); | 124 void layoutRows(); |
125 void computeOverflowFromCells(); | 125 void computeOverflowFromCells(); |
| 126 bool recalcChildOverflowAfterStyleChange(); |
126 | 127 |
127 LayoutTable* table() const { return toLayoutTable(parent()); } | 128 LayoutTable* table() const { return toLayoutTable(parent()); } |
128 | 129 |
129 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells; | 130 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells; |
130 | 131 |
131 // CellStruct represents the cells that occupy an (N, M) position in the | 132 // CellStruct represents the cells that occupy an (N, M) position in the |
132 // table grid. | 133 // table grid. |
133 struct CellStruct { | 134 struct CellStruct { |
134 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 135 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
135 public: | 136 public: |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 // Invisible borders are never stored in this map. | 418 // Invisible borders are never stored in this map. |
418 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i
nt>, CollapsedBorderValue>; | 419 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i
nt>, CollapsedBorderValue>; |
419 CellsCollapsedBordersMap m_cellsCollapsedBorders; | 420 CellsCollapsedBordersMap m_cellsCollapsedBorders; |
420 }; | 421 }; |
421 | 422 |
422 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 423 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
423 | 424 |
424 } // namespace blink | 425 } // namespace blink |
425 | 426 |
426 #endif // LayoutTableSection_h | 427 #endif // LayoutTableSection_h |
OLD | NEW |