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, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 bool hasSections() const { return m_head || m_foot || m_firstBody; } | 206 bool hasSections() const { return m_head || m_foot || m_firstBody; } |
207 | 207 |
208 void recalcSectionsIfNeeded() const | 208 void recalcSectionsIfNeeded() const |
209 { | 209 { |
210 if (m_needsSectionRecalc) | 210 if (m_needsSectionRecalc) |
211 recalcSections(); | 211 recalcSections(); |
212 } | 212 } |
213 | 213 |
214 static RenderTable* createAnonymousWithParentRenderer(const RenderObject*); | 214 static RenderTable* createAnonymousWithParentRenderer(const RenderObject*); |
| 215 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare
nt) const OVERRIDE |
| 216 { |
| 217 return createAnonymousWithParentRenderer(parent); |
| 218 } |
215 | 219 |
216 protected: | 220 protected: |
217 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 221 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
218 | 222 |
219 private: | 223 private: |
220 virtual const char* renderName() const { return "RenderTable"; } | 224 virtual const char* renderName() const { return "RenderTable"; } |
221 | 225 |
222 virtual bool isTable() const { return true; } | 226 virtual bool isTable() const { return true; } |
223 | 227 |
224 virtual bool avoidsFloats() const { return true; } | 228 virtual bool avoidsFloats() const { return true; } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 ASSERT(!object || object->isTable()); | 304 ASSERT(!object || object->isTable()); |
301 return static_cast<const RenderTable*>(object); | 305 return static_cast<const RenderTable*>(object); |
302 } | 306 } |
303 | 307 |
304 // This will catch anyone doing an unnecessary cast. | 308 // This will catch anyone doing an unnecessary cast. |
305 void toRenderTable(const RenderTable*); | 309 void toRenderTable(const RenderTable*); |
306 | 310 |
307 } // namespace WebCore | 311 } // namespace WebCore |
308 | 312 |
309 #endif // RenderTable_h | 313 #endif // RenderTable_h |
OLD | NEW |