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 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class RenderTable; | 33 class RenderTable; |
34 class RenderTableCell; | 34 class RenderTableCell; |
35 | 35 |
36 class RenderTableCol FINAL : public RenderBox { | 36 class RenderTableCol FINAL : public RenderBox { |
37 public: | 37 public: |
38 explicit RenderTableCol(Element*); | 38 explicit RenderTableCol(Element*); |
39 virtual void trace(Visitor*) OVERRIDE; | 39 virtual void trace(Visitor*) OVERRIDE; |
40 | 40 |
41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | |
43 | 42 |
44 // If you have a RenderTableCol, use firstChild or lastChild instead. | 43 // If you have a RenderTableCol, use firstChild or lastChild instead. |
45 void slowFirstChild() const WTF_DELETED_FUNCTION; | 44 void slowFirstChild() const WTF_DELETED_FUNCTION; |
46 void slowLastChild() const WTF_DELETED_FUNCTION; | 45 void slowLastChild() const WTF_DELETED_FUNCTION; |
47 | 46 |
48 const RenderObjectChildList* children() const { return &m_children; } | 47 const RenderObjectChildList* children() const { return &m_children; } |
49 RenderObjectChildList* children() { return &m_children; } | 48 RenderObjectChildList* children() { return &m_children; } |
50 | 49 |
51 void clearPreferredLogicalWidthsDirtyBits(); | 50 void clearPreferredLogicalWidthsDirtyBits(); |
52 | 51 |
53 unsigned span() const { return m_span; } | 52 unsigned span() const { return m_span; } |
54 void setSpan(unsigned span) { m_span = span; } | |
55 | 53 |
56 bool isTableColumnGroupWithColumnChildren() { return firstChild(); } | 54 bool isTableColumnGroupWithColumnChildren() { return firstChild(); } |
57 bool isTableColumn() const { return style()->display() == TABLE_COLUMN; } | 55 bool isTableColumn() const { return style()->display() == TABLE_COLUMN; } |
58 bool isTableColumnGroup() const { return style()->display() == TABLE_COLUMN_
GROUP; } | 56 bool isTableColumnGroup() const { return style()->display() == TABLE_COLUMN_
GROUP; } |
59 | 57 |
60 RenderTableCol* enclosingColumnGroup() const; | 58 RenderTableCol* enclosingColumnGroup() const; |
61 RenderTableCol* enclosingColumnGroupIfAdjacentBefore() const | 59 RenderTableCol* enclosingColumnGroupIfAdjacentBefore() const |
62 { | 60 { |
63 if (previousSibling()) | 61 if (previousSibling()) |
64 return 0; | 62 return 0; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 104 |
107 RenderObjectChildList m_children; | 105 RenderObjectChildList m_children; |
108 unsigned m_span; | 106 unsigned m_span; |
109 }; | 107 }; |
110 | 108 |
111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); | 109 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); |
112 | 110 |
113 } | 111 } |
114 | 112 |
115 #endif | 113 #endif |
OLD | NEW |