| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the DOM implementation for KDE. | 2 * This file is part of the DOM implementation for KDE. |
| 3 * | 3 * |
| 4 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 4 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 5 * (C) 1997 Torben Weis (weis@kde.org) | 5 * (C) 1997 Torben Weis (weis@kde.org) |
| 6 * (C) 1998 Waldo Bastian (bastian@kde.org) | 6 * (C) 1998 Waldo Bastian (bastian@kde.org) |
| 7 * (C) 1999 Lars Knoll (knoll@kde.org) | 7 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 8 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 8 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 9 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. | 9 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. |
| 10 * | 10 * |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Section (anonymous)" : "RenderTableSection"; } | 43 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Section (anonymous)" : "RenderTableSection"; } |
| 44 | 44 |
| 45 virtual bool isTableSection() const { return true; } | 45 virtual bool isTableSection() const { return true; } |
| 46 | 46 |
| 47 virtual void destroy(); | 47 virtual void destroy(); |
| 48 | 48 |
| 49 virtual void layout(); | 49 virtual void layout(); |
| 50 | 50 |
| 51 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); | 51 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); |
| 52 virtual void removeChild(RenderObject* oldChild); |
| 52 | 53 |
| 53 virtual int getBaselineOfFirstLineBox() const; | 54 virtual int getBaselineOfFirstLineBox() const; |
| 54 | 55 |
| 55 void addCell(RenderTableCell*, RenderTableRow* row); | 56 void addCell(RenderTableCell*, RenderTableRow* row); |
| 56 | 57 |
| 57 void setCellWidths(); | 58 void setCellWidths(); |
| 58 int calcRowHeight(); | 59 int calcRowHeight(); |
| 59 int layoutRows(int height); | 60 int layoutRows(int height); |
| 60 | 61 |
| 61 RenderTable* table() const { return static_cast<RenderTable*>(parent()); } | 62 RenderTable* table() const { return static_cast<RenderTable*>(parent()); } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 bool needsCellRecalc() const { return m_needsCellRecalc; } | 116 bool needsCellRecalc() const { return m_needsCellRecalc; } |
| 116 void setNeedsCellRecalc() | 117 void setNeedsCellRecalc() |
| 117 { | 118 { |
| 118 m_needsCellRecalc = true; | 119 m_needsCellRecalc = true; |
| 119 table()->setNeedsSectionRecalc(); | 120 table()->setNeedsSectionRecalc(); |
| 120 } | 121 } |
| 121 | 122 |
| 122 int getBaseline(int row) { return m_grid[row].baseline; } | 123 int getBaseline(int row) { return m_grid[row].baseline; } |
| 123 | 124 |
| 124 virtual RenderObject* removeChildNode(RenderObject*, bool fullRemove = true)
; | |
| 125 | |
| 126 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); | 125 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); |
| 127 | 126 |
| 128 private: | 127 private: |
| 129 virtual int lineHeight(bool, bool) const { return 0; } | 128 virtual int lineHeight(bool, bool) const { return 0; } |
| 130 virtual void position(InlineBox*) { } | 129 virtual void position(InlineBox*) { } |
| 131 | 130 |
| 132 bool ensureRows(int); | 131 bool ensureRows(int); |
| 133 void clearGrid(); | 132 void clearGrid(); |
| 134 | 133 |
| 135 Vector<RowStruct> m_grid; | 134 Vector<RowStruct> m_grid; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 148 int m_overflowLeft; | 147 int m_overflowLeft; |
| 149 int m_overflowWidth; | 148 int m_overflowWidth; |
| 150 int m_overflowTop; | 149 int m_overflowTop; |
| 151 int m_overflowHeight; | 150 int m_overflowHeight; |
| 152 bool m_hasOverflowingCell; | 151 bool m_hasOverflowingCell; |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace WebCore | 154 } // namespace WebCore |
| 156 | 155 |
| 157 #endif // RenderTableSection_h | 156 #endif // RenderTableSection_h |
| OLD | NEW |