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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "RenderTableCol.h" | 27 #include "RenderTableCol.h" |
28 | 28 |
29 #include "CachedImage.h" | 29 #include "CachedImage.h" |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "HTMLTableColElement.h" | 31 #include "HTMLTableColElement.h" |
32 #include "RenderTable.h" | 32 #include "RenderTable.h" |
33 #include "RenderTableCell.h" | 33 #include "RenderTableCell.h" |
34 #include "WebCoreMemoryInstrumentation.h" | |
35 | 34 |
36 namespace WebCore { | 35 namespace WebCore { |
37 | 36 |
38 using namespace HTMLNames; | 37 using namespace HTMLNames; |
39 | 38 |
40 RenderTableCol::RenderTableCol(Element* element) | 39 RenderTableCol::RenderTableCol(Element* element) |
41 : RenderBox(element) | 40 : RenderBox(element) |
42 , m_span(1) | 41 , m_span(1) |
43 { | 42 { |
44 // init RenderObject attributes | 43 // init RenderObject attributes |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 ASSERT_UNUSED(cell, table()->colElement(cell->col() + cell->colSpan()) == th
is); | 180 ASSERT_UNUSED(cell, table()->colElement(cell->col() + cell->colSpan()) == th
is); |
182 return style()->borderStart(); | 181 return style()->borderStart(); |
183 } | 182 } |
184 | 183 |
185 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const | 184 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const |
186 { | 185 { |
187 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); | 186 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); |
188 return style()->borderEnd(); | 187 return style()->borderEnd(); |
189 } | 188 } |
190 | 189 |
191 void RenderTableCol::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
192 { | |
193 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
194 RenderBox::reportMemoryUsage(memoryObjectInfo); | |
195 info.addMember(m_children, "children"); | |
196 } | 190 } |
197 | |
198 } | |
OLD | NEW |