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, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
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 17 matching lines...) Expand all Loading... |
28 #include "CachedImage.h" | 28 #include "CachedImage.h" |
29 #include "Document.h" | 29 #include "Document.h" |
30 #include "HitTestResult.h" | 30 #include "HitTestResult.h" |
31 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
32 #include "PaintInfo.h" | 32 #include "PaintInfo.h" |
33 #include "RenderTableCell.h" | 33 #include "RenderTableCell.h" |
34 #include "RenderTableCol.h" | 34 #include "RenderTableCol.h" |
35 #include "RenderTableRow.h" | 35 #include "RenderTableRow.h" |
36 #include "RenderView.h" | 36 #include "RenderView.h" |
37 #include "StyleInheritedData.h" | 37 #include "StyleInheritedData.h" |
38 #include "WebCoreMemoryInstrumentation.h" | |
39 #include <limits> | 38 #include <limits> |
40 #include <wtf/HashSet.h> | 39 #include <wtf/HashSet.h> |
41 #include <wtf/MemoryInstrumentationHashMap.h> | |
42 #include <wtf/MemoryInstrumentationHashSet.h> | |
43 #include <wtf/MemoryInstrumentationVector.h> | |
44 #include <wtf/Vector.h> | 40 #include <wtf/Vector.h> |
45 | 41 |
46 using namespace std; | 42 using namespace std; |
47 | 43 |
48 namespace WebCore { | 44 namespace WebCore { |
49 | 45 |
50 using namespace HTMLNames; | 46 using namespace HTMLNames; |
51 | 47 |
52 // Those 2 variables are used to balance the memory consumption vs the repaint t
ime on big tables. | 48 // Those 2 variables are used to balance the memory consumption vs the repaint t
ime on big tables. |
53 static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75; | 49 static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75; |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). | 1428 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). |
1433 if (!style()->isLeftToRightDirection()) | 1429 if (!style()->isLeftToRightDirection()) |
1434 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1430 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
1435 else | 1431 else |
1436 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1432 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
1437 | 1433 |
1438 cell->setLogicalLocation(cellLocation); | 1434 cell->setLogicalLocation(cellLocation); |
1439 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1435 view()->addLayoutDelta(oldCellLocation - cell->location()); |
1440 } | 1436 } |
1441 | 1437 |
1442 void RenderTableSection::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) c
onst | |
1443 { | |
1444 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
1445 RenderBox::reportMemoryUsage(memoryObjectInfo); | |
1446 info.addMember(m_children, "children"); | |
1447 info.addMember(m_grid, "grid"); | |
1448 info.addMember(m_rowPos, "rowPos"); | |
1449 info.addMember(m_overflowingCells, "overflowingCells"); | |
1450 info.addMember(m_cellsCollapsedBorders, "cellsCollapsedBorders"); | |
1451 } | |
1452 | |
1453 void RenderTableSection::RowStruct::reportMemoryUsage(MemoryObjectInfo* memoryOb
jectInfo) const | |
1454 { | |
1455 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
1456 info.addMember(row, "row"); | |
1457 info.addMember(rowRenderer, "rowRenderer"); | |
1458 info.addMember(logicalHeight, "logicalHeight"); | |
1459 } | |
1460 | |
1461 void RenderTableSection::CellStruct::reportMemoryUsage(MemoryObjectInfo* memoryO
bjectInfo) const | |
1462 { | |
1463 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
1464 info.addMember(cells, "cells"); | |
1465 } | |
1466 | |
1467 } // namespace WebCore | 1438 } // namespace WebCore |
OLD | NEW |