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, 2007, 2009 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual LayoutUnit paddingAfter(PaddingOptions = IncludeIntrinsicPadding) co
nst; | 132 virtual LayoutUnit paddingAfter(PaddingOptions = IncludeIntrinsicPadding) co
nst; |
133 | 133 |
134 void setOverrideHeightFromRowHeight(LayoutUnit); | 134 void setOverrideHeightFromRowHeight(LayoutUnit); |
135 | 135 |
136 virtual void scrollbarsChanged(bool horizontalScrollbarChanged, bool vertica
lScrollbarChanged); | 136 virtual void scrollbarsChanged(bool horizontalScrollbarChanged, bool vertica
lScrollbarChanged); |
137 | 137 |
138 bool cellWidthChanged() const { return m_cellWidthChanged; } | 138 bool cellWidthChanged() const { return m_cellWidthChanged; } |
139 void setCellWidthChanged(bool b = true) { m_cellWidthChanged = b; } | 139 void setCellWidthChanged(bool b = true) { m_cellWidthChanged = b; } |
140 | 140 |
141 static RenderTableCell* createAnonymousWithParentRenderer(const RenderObject
*); | 141 static RenderTableCell* createAnonymousWithParentRenderer(const RenderObject
*); |
| 142 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare
nt) const OVERRIDE |
| 143 { |
| 144 return createAnonymousWithParentRenderer(parent); |
| 145 } |
142 | 146 |
143 protected: | 147 protected: |
144 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 148 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
145 | 149 |
146 private: | 150 private: |
147 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Cell (anonymous)" : "RenderTableCell"; } | 151 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Cell (anonymous)" : "RenderTableCell"; } |
148 | 152 |
149 virtual bool isTableCell() const { return true; } | 153 virtual bool isTableCell() const { return true; } |
150 | 154 |
151 virtual void willBeDestroyed(); | 155 virtual void willBeDestroyed(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ASSERT(!object || object->isTableCell()); | 209 ASSERT(!object || object->isTableCell()); |
206 return static_cast<const RenderTableCell*>(object); | 210 return static_cast<const RenderTableCell*>(object); |
207 } | 211 } |
208 | 212 |
209 // This will catch anyone doing an unnecessary cast. | 213 // This will catch anyone doing an unnecessary cast. |
210 void toRenderTableCell(const RenderTableCell*); | 214 void toRenderTableCell(const RenderTableCell*); |
211 | 215 |
212 } // namespace WebCore | 216 } // namespace WebCore |
213 | 217 |
214 #endif // RenderTableCell_h | 218 #endif // RenderTableCell_h |
OLD | NEW |