| 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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 { | 1409 { |
| 1410 ASSERT(table()->collapseBorders()); | 1410 ASSERT(table()->collapseBorders()); |
| 1411 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue>::iterator i
t = m_cellsCollapsedBorders.find(make_pair(cell, side)); | 1411 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue>::iterator i
t = m_cellsCollapsedBorders.find(make_pair(cell, side)); |
| 1412 ASSERT(it != m_cellsCollapsedBorders.end()); | 1412 ASSERT(it != m_cellsCollapsedBorders.end()); |
| 1413 return it->value; | 1413 return it->value; |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const
RenderObject* parent) | 1416 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const
RenderObject* parent) |
| 1417 { | 1417 { |
| 1418 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW_GROUP); | 1418 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW_GROUP); |
| 1419 RenderTableSection* newSection = new (parent->renderArena()) RenderTableSect
ion(0); | 1419 RenderTableSection* newSection = new RenderTableSection(0); |
| 1420 newSection->setDocumentForAnonymous(parent->document()); | 1420 newSection->setDocumentForAnonymous(parent->document()); |
| 1421 newSection->setStyle(newStyle.release()); | 1421 newSection->setStyle(newStyle.release()); |
| 1422 return newSection; | 1422 return newSection; |
| 1423 } | 1423 } |
| 1424 | 1424 |
| 1425 void RenderTableSection::setLogicalPositionForCell(RenderTableCell* cell, unsign
ed effectiveColumn) const | 1425 void RenderTableSection::setLogicalPositionForCell(RenderTableCell* cell, unsign
ed effectiveColumn) const |
| 1426 { | 1426 { |
| 1427 LayoutPoint oldCellLocation = cell->location(); | 1427 LayoutPoint oldCellLocation = cell->location(); |
| 1428 | 1428 |
| 1429 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); | 1429 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1458 info.addMember(logicalHeight, "logicalHeight"); | 1458 info.addMember(logicalHeight, "logicalHeight"); |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 void RenderTableSection::CellStruct::reportMemoryUsage(MemoryObjectInfo* memoryO
bjectInfo) const | 1461 void RenderTableSection::CellStruct::reportMemoryUsage(MemoryObjectInfo* memoryO
bjectInfo) const |
| 1462 { | 1462 { |
| 1463 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | 1463 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; |
| 1464 info.addMember(cells, "cells"); | 1464 info.addMember(cells, "cells"); |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 } // namespace WebCore | 1467 } // namespace WebCore |
| OLD | NEW |