| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 public: | 68 public: |
| 69 LayoutTableSection(Element*); | 69 LayoutTableSection(Element*); |
| 70 virtual ~LayoutTableSection(); | 70 virtual ~LayoutTableSection(); |
| 71 | 71 |
| 72 LayoutTableRow* firstRow() const; | 72 LayoutTableRow* firstRow() const; |
| 73 LayoutTableRow* lastRow() const; | 73 LayoutTableRow* lastRow() const; |
| 74 | 74 |
| 75 const LayoutObjectChildList* children() const { return &m_children; } | 75 const LayoutObjectChildList* children() const { return &m_children; } |
| 76 LayoutObjectChildList* children() { return &m_children; } | 76 LayoutObjectChildList* children() { return &m_children; } |
| 77 | 77 |
| 78 virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = 0) ov
erride; | 78 virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullp
tr) override; |
| 79 | 79 |
| 80 virtual int firstLineBoxBaseline() const override; | 80 virtual int firstLineBoxBaseline() const override; |
| 81 | 81 |
| 82 void addCell(LayoutTableCell*, LayoutTableRow*); | 82 void addCell(LayoutTableCell*, LayoutTableRow*); |
| 83 | 83 |
| 84 int calcRowLogicalHeight(); | 84 int calcRowLogicalHeight(); |
| 85 void layoutRows(); | 85 void layoutRows(); |
| 86 void computeOverflowFromCells(); | 86 void computeOverflowFromCells(); |
| 87 | 87 |
| 88 LayoutTable* table() const { return toLayoutTable(parent()); } | 88 LayoutTable* table() const { return toLayoutTable(parent()); } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 virtual const LayoutObjectChildList* virtualChildren() const override { retu
rn children(); } | 242 virtual const LayoutObjectChildList* virtualChildren() const override { retu
rn children(); } |
| 243 | 243 |
| 244 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectTableSection || LayoutBox::isOfType(type); } | 244 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectTableSection || LayoutBox::isOfType(type); } |
| 245 | 245 |
| 246 virtual void willBeRemovedFromTree() override; | 246 virtual void willBeRemovedFromTree() override; |
| 247 | 247 |
| 248 virtual void layout() override; | 248 virtual void layout() override; |
| 249 | 249 |
| 250 virtual void paintObject(const PaintInfo&, const LayoutPoint&) override; | 250 virtual void paintObject(const PaintInfo&, const LayoutPoint&) override; |
| 251 | 251 |
| 252 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 252 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) overrid
e; |
| 253 | 253 |
| 254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowLayoutOb
ject ? table()->vBorderSpacing() : 0; } | 254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowLayoutOb
ject ? 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&); |
| (...skipping 51 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 |