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 LayoutTable; | 33 class LayoutTable; |
34 class LayoutTableCell; | 34 class LayoutTableCell; |
35 | 35 |
36 class LayoutTableCol final : public RenderBox { | 36 class LayoutTableCol final : public RenderBox { |
37 public: | 37 public: |
38 explicit LayoutTableCol(Element*); | 38 explicit LayoutTableCol(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 | 41 |
43 // If you have a LayoutTableCol, use firstChild or lastChild instead. | 42 // If you have a LayoutTableCol, use firstChild or lastChild instead. |
44 void slowFirstChild() const = delete; | 43 void slowFirstChild() const = delete; |
45 void slowLastChild() const = delete; | 44 void slowLastChild() const = delete; |
46 | 45 |
47 const RenderObjectChildList* children() const { return &m_children; } | 46 const RenderObjectChildList* children() const { return &m_children; } |
48 RenderObjectChildList* children() { return &m_children; } | 47 RenderObjectChildList* children() { return &m_children; } |
49 | 48 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 103 |
105 RenderObjectChildList m_children; | 104 RenderObjectChildList m_children; |
106 unsigned m_span; | 105 unsigned m_span; |
107 }; | 106 }; |
108 | 107 |
109 DEFINE_RENDER_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); | 108 DEFINE_RENDER_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); |
110 | 109 |
111 } | 110 } |
112 | 111 |
113 #endif | 112 #endif |
OLD | NEW |