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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 } | 1331 } |
1332 | 1332 |
1333 return CellSpan(startColumn, endColumn); | 1333 return CellSpan(startColumn, endColumn); |
1334 } | 1334 } |
1335 | 1335 |
1336 | 1336 |
1337 void RenderTableSection::paintObject(PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) | 1337 void RenderTableSection::paintObject(PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) |
1338 { | 1338 { |
1339 PaintPhase paintPhase = paintInfo.phase; | 1339 PaintPhase paintPhase = paintInfo.phase; |
1340 | 1340 |
1341 LayoutRect localRepaintRect = paintInfo.rect; | 1341 LayoutRect localRepaintRect = paintInfo.rect(); |
1342 localRepaintRect.moveBy(-paintOffset); | 1342 localRepaintRect.moveBy(-paintOffset); |
1343 localRepaintRect.inflate(maximalOutlineSize(paintPhase)); | 1343 localRepaintRect.inflate(maximalOutlineSize(paintPhase)); |
1344 | 1344 |
1345 LayoutRect tableAlignedRect = logicalRectForWritingModeAndDirection(localRep
aintRect); | 1345 LayoutRect tableAlignedRect = logicalRectForWritingModeAndDirection(localRep
aintRect); |
1346 | 1346 |
1347 CellSpan dirtiedRows = this->dirtiedRows(tableAlignedRect); | 1347 CellSpan dirtiedRows = this->dirtiedRows(tableAlignedRect); |
1348 CellSpan dirtiedColumns = this->dirtiedColumns(tableAlignedRect); | 1348 CellSpan dirtiedColumns = this->dirtiedColumns(tableAlignedRect); |
1349 | 1349 |
1350 if (dirtiedColumns.start() < dirtiedColumns.end()) { | 1350 if (dirtiedColumns.start() < dirtiedColumns.end()) { |
1351 if (!m_hasMultipleCellLevels && !m_overflowingCells.size()) { | 1351 if (!m_hasMultipleCellLevels && !m_overflowingCells.size()) { |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 if (!style()->isLeftToRightDirection()) | 1684 if (!style()->isLeftToRightDirection()) |
1685 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1685 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
1686 else | 1686 else |
1687 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1687 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
1688 | 1688 |
1689 cell->setLogicalLocation(cellLocation); | 1689 cell->setLogicalLocation(cellLocation); |
1690 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1690 view()->addLayoutDelta(oldCellLocation - cell->location()); |
1691 } | 1691 } |
1692 | 1692 |
1693 } // namespace WebCore | 1693 } // namespace WebCore |
OLD | NEW |