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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 } | 203 } |
204 | 204 |
205 bool needsCellRecalc() const { return m_needsCellRecalc; } | 205 bool needsCellRecalc() const { return m_needsCellRecalc; } |
206 void setNeedsCellRecalc(); | 206 void setNeedsCellRecalc(); |
207 | 207 |
208 LayoutUnit rowBaseline(unsigned row) { return m_grid[row].baseline; } | 208 LayoutUnit rowBaseline(unsigned row) { return m_grid[row].baseline; } |
209 | 209 |
210 void rowLogicalHeightChanged(LayoutTableRow*); | 210 void rowLogicalHeightChanged(LayoutTableRow*); |
211 | 211 |
212 void removeCachedCollapsedBorders(const LayoutTableCell*); | 212 void removeCachedCollapsedBorders(const LayoutTableCell*); |
213 void setCachedCollapsedBorder(const LayoutTableCell*, CollapsedBorderSide, c onst CollapsedBorderValue&); | 213 bool setCachedCollapsedBorder(const LayoutTableCell*, CollapsedBorderSide, c onst CollapsedBorderValue&); |
pdr.
2015/08/20 07:07:15
Please add a comment explaining the return value.
Xianzhu
2015/08/20 16:39:51
Done.
| |
214 const CollapsedBorderValue& cachedCollapsedBorder(const LayoutTableCell*, Co llapsedBorderSide) const; | 214 const CollapsedBorderValue& cachedCollapsedBorder(const LayoutTableCell*, Co llapsedBorderSide) const; |
215 | 215 |
216 // distributeExtraLogicalHeightToRows methods return the *consumed* extra lo gical height. | 216 // distributeExtraLogicalHeightToRows methods return the *consumed* extra lo gical height. |
217 // FIXME: We may want to introduce a structure holding the in-flux layout in formation. | 217 // FIXME: We may want to introduce a structure holding the in-flux layout in formation. |
218 int distributeExtraLogicalHeightToRows(int extraLogicalHeight); | 218 int distributeExtraLogicalHeightToRows(int extraLogicalHeight); |
219 | 219 |
220 static LayoutTableSection* createAnonymousWithParent(const LayoutObject*); | 220 static LayoutTableSection* createAnonymousWithParent(const LayoutObject*); |
221 LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) cons t override | 221 LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) cons t override |
222 { | 222 { |
223 return createAnonymousWithParent(parent); | 223 return createAnonymousWithParent(parent); |
(...skipping 90 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 |