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 18 matching lines...) Expand all Loading... |
29 #include "core/rendering/RenderBox.h" | 29 #include "core/rendering/RenderBox.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
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; | |
40 | 39 |
41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 40 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 41 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; } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 105 |
107 RenderObjectChildList m_children; | 106 RenderObjectChildList m_children; |
108 unsigned m_span; | 107 unsigned m_span; |
109 }; | 108 }; |
110 | 109 |
111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); | 110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); |
112 | 111 |
113 } | 112 } |
114 | 113 |
115 #endif | 114 #endif |
OLD | NEW |