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 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 const RenderObjectChildList* children() const { return &m_children; } | 36 const RenderObjectChildList* children() const { return &m_children; } |
37 RenderObjectChildList* children() { return &m_children; } | 37 RenderObjectChildList* children() { return &m_children; } |
38 | 38 |
39 RenderTableSection* section() const { return toRenderTableSection(parent());
} | 39 RenderTableSection* section() const { return toRenderTableSection(parent());
} |
40 RenderTable* table() const { return toRenderTable(parent()->parent()); } | 40 RenderTable* table() const { return toRenderTable(parent()->parent()); } |
41 | 41 |
42 void updateBeforeAndAfterContent(); | 42 void updateBeforeAndAfterContent(); |
43 void paintOutlineForRowIfNeeded(PaintInfo&, const LayoutPoint&); | 43 void paintOutlineForRowIfNeeded(PaintInfo&, const LayoutPoint&); |
44 | 44 |
| 45 static RenderTableRow* createAnonymousWithParentRenderer(const RenderObject*
); |
| 46 |
45 private: | 47 private: |
46 virtual RenderObjectChildList* virtualChildren() { return children(); } | 48 virtual RenderObjectChildList* virtualChildren() { return children(); } |
47 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 49 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } |
48 | 50 |
49 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Row (anonymous)" : "RenderTableRow"; } | 51 virtual const char* renderName() const { return isAnonymous() ? "RenderTable
Row (anonymous)" : "RenderTableRow"; } |
50 | 52 |
51 virtual bool isTableRow() const { return true; } | 53 virtual bool isTableRow() const { return true; } |
52 | 54 |
53 virtual void willBeDestroyed(); | 55 virtual void willBeDestroyed(); |
54 | 56 |
(...skipping 25 matching lines...) Expand all Loading... |
80 ASSERT(!object || object->isTableRow()); | 82 ASSERT(!object || object->isTableRow()); |
81 return static_cast<const RenderTableRow*>(object); | 83 return static_cast<const RenderTableRow*>(object); |
82 } | 84 } |
83 | 85 |
84 // This will catch anyone doing an unnecessary cast. | 86 // This will catch anyone doing an unnecessary cast. |
85 void toRenderTableRow(const RenderTableRow*); | 87 void toRenderTableRow(const RenderTableRow*); |
86 | 88 |
87 } // namespace WebCore | 89 } // namespace WebCore |
88 | 90 |
89 #endif // RenderTableRow_h | 91 #endif // RenderTableRow_h |
OLD | NEW |