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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const CollapsedBorderValue* currentBorderValue() const { return m_currentBor
der; } | 204 const CollapsedBorderValue* currentBorderValue() const { return m_currentBor
der; } |
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*); |
| 215 |
214 protected: | 216 protected: |
215 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 217 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
216 | 218 |
217 private: | 219 private: |
218 virtual const char* renderName() const { return "RenderTable"; } | 220 virtual const char* renderName() const { return "RenderTable"; } |
219 | 221 |
220 virtual bool isTable() const { return true; } | 222 virtual bool isTable() const { return true; } |
221 | 223 |
222 virtual bool avoidsFloats() const { return true; } | 224 virtual bool avoidsFloats() const { return true; } |
223 | 225 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 ASSERT(!object || object->isTable()); | 300 ASSERT(!object || object->isTable()); |
299 return static_cast<const RenderTable*>(object); | 301 return static_cast<const RenderTable*>(object); |
300 } | 302 } |
301 | 303 |
302 // This will catch anyone doing an unnecessary cast. | 304 // This will catch anyone doing an unnecessary cast. |
303 void toRenderTable(const RenderTable*); | 305 void toRenderTable(const RenderTable*); |
304 | 306 |
305 } // namespace WebCore | 307 } // namespace WebCore |
306 | 308 |
307 #endif // RenderTable_h | 309 #endif // RenderTable_h |
OLD | NEW |