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, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights 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 15 matching lines...) Expand all Loading... |
26 #include "RenderTableRow.h" | 26 #include "RenderTableRow.h" |
27 | 27 |
28 #include "CachedImage.h" | 28 #include "CachedImage.h" |
29 #include "Document.h" | 29 #include "Document.h" |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "HitTestResult.h" | 31 #include "HitTestResult.h" |
32 #include "PaintInfo.h" | 32 #include "PaintInfo.h" |
33 #include "RenderTableCell.h" | 33 #include "RenderTableCell.h" |
34 #include "RenderView.h" | 34 #include "RenderView.h" |
35 #include "StyleInheritedData.h" | 35 #include "StyleInheritedData.h" |
36 #include "WebCoreMemoryInstrumentation.h" | |
37 | 36 |
38 namespace WebCore { | 37 namespace WebCore { |
39 | 38 |
40 using namespace HTMLNames; | 39 using namespace HTMLNames; |
41 | 40 |
42 RenderTableRow::RenderTableRow(Element* element) | 41 RenderTableRow::RenderTableRow(Element* element) |
43 : RenderBox(element) | 42 : RenderBox(element) |
44 , m_rowIndex(unsetRowIndex) | 43 , m_rowIndex(unsetRowIndex) |
45 { | 44 { |
46 // init RenderObject attributes | 45 // init RenderObject attributes |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 } | 272 } |
274 | 273 |
275 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb
ject* parent) | 274 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb
ject* parent) |
276 { | 275 { |
277 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document())
; | 276 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document())
; |
278 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW); | 277 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW); |
279 newRow->setStyle(newStyle.release()); | 278 newRow->setStyle(newStyle.release()); |
280 return newRow; | 279 return newRow; |
281 } | 280 } |
282 | 281 |
283 void RenderTableRow::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
284 { | |
285 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
286 RenderBox::reportMemoryUsage(memoryObjectInfo); | |
287 info.addMember(m_children, "children"); | |
288 } | |
289 | |
290 } // namespace WebCore | 282 } // namespace WebCore |
OLD | NEW |