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, 2013 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r
ights 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 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 for (unsigned i = 0; i < cells.size(); ++i) | 1479 for (unsigned i = 0; i < cells.size(); ++i) |
1480 paintCell(cells[i], paintInfo, paintOffset); | 1480 paintCell(cells[i], paintInfo, paintOffset); |
1481 } | 1481 } |
1482 } | 1482 } |
1483 } | 1483 } |
1484 } | 1484 } |
1485 | 1485 |
1486 void RenderTableSection::imageChanged(WrappedImagePtr, const IntRect*) | 1486 void RenderTableSection::imageChanged(WrappedImagePtr, const IntRect*) |
1487 { | 1487 { |
1488 // FIXME: Examine cells and repaint only the rect the image paints in. | 1488 // FIXME: Examine cells and repaint only the rect the image paints in. |
1489 repaint(); | 1489 paintInvalidationForWholeRenderer(); |
1490 } | 1490 } |
1491 | 1491 |
1492 void RenderTableSection::recalcCells() | 1492 void RenderTableSection::recalcCells() |
1493 { | 1493 { |
1494 ASSERT(m_needsCellRecalc); | 1494 ASSERT(m_needsCellRecalc); |
1495 // We reset the flag here to ensure that |addCell| works. This is safe to do
as | 1495 // We reset the flag here to ensure that |addCell| works. This is safe to do
as |
1496 // fillRowsWithDefaultStartingAtPosition makes sure we match the table's col
umns | 1496 // fillRowsWithDefaultStartingAtPosition makes sure we match the table's col
umns |
1497 // representation. | 1497 // representation. |
1498 m_needsCellRecalc = false; | 1498 m_needsCellRecalc = false; |
1499 | 1499 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 else | 1723 else |
1724 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1724 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
1725 | 1725 |
1726 cell->setLogicalLocation(cellLocation); | 1726 cell->setLogicalLocation(cellLocation); |
1727 | 1727 |
1728 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) | 1728 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) |
1729 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1729 view()->addLayoutDelta(oldCellLocation - cell->location()); |
1730 } | 1730 } |
1731 | 1731 |
1732 } // namespace WebCore | 1732 } // namespace WebCore |
OLD | NEW |