| OLD | NEW |
| 1 /** | 1 /** |
| 2 * This file is part of the DOM implementation for KDE. | 2 * This file is part of the DOM implementation for KDE. |
| 3 * | 3 * |
| 4 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 4 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 5 * (C) 1997 Torben Weis (weis@kde.org) | 5 * (C) 1997 Torben Weis (weis@kde.org) |
| 6 * (C) 1998 Waldo Bastian (bastian@kde.org) | 6 * (C) 1998 Waldo Bastian (bastian@kde.org) |
| 7 * (C) 1999 Lars Knoll (knoll@kde.org) | 7 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 8 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 8 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 9 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. | 9 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. |
| 10 * | 10 * |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 for (RenderObject* child = firstChild(); child; child = child->nextSibli
ng()) { | 154 for (RenderObject* child = firstChild(); child; child = child->nextSibli
ng()) { |
| 155 if (child->isTableCell()) | 155 if (child->isTableCell()) |
| 156 child->repaint(); | 156 child->repaint(); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 | 159 |
| 160 statePusher.pop(); | 160 statePusher.pop(); |
| 161 setNeedsLayout(false); | 161 setNeedsLayout(false); |
| 162 } | 162 } |
| 163 | 163 |
| 164 IntRect RenderTableRow::clippedOverflowRectForRepaint(RenderBoxModelObject* repa
intContainer) | 164 IntRect RenderTableRow::clippedOverflowRectForRepaint(RenderBox* repaintContaine
r) |
| 165 { | 165 { |
| 166 // For now, just repaint the whole table. | 166 // For now, just repaint the whole table. |
| 167 // FIXME: Find a better way to do this, e.g., need to repaint all the cells
that we | 167 // FIXME: Find a better way to do this, e.g., need to repaint all the cells
that we |
| 168 // might have propagated a background color into. | 168 // might have propagated a background color into. |
| 169 // FIXME: do repaintContainer checks here | 169 // FIXME: do repaintContainer checks here |
| 170 if (RenderTable* parentTable = table()) | 170 if (RenderTable* parentTable = table()) |
| 171 return parentTable->clippedOverflowRectForRepaint(repaintContainer); | 171 return parentTable->clippedOverflowRectForRepaint(repaintContainer); |
| 172 | 172 |
| 173 return IntRect(); | 173 return IntRect(); |
| 174 } | 174 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 187 updateHitTestResult(result, IntPoint(x - tx, y - ty)); | 187 updateHitTestResult(result, IntPoint(x - tx, y - ty)); |
| 188 return true; | 188 return true; |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 return false; | 192 return false; |
| 193 } | 193 } |
| 194 | 194 |
| 195 void RenderTableRow::paint(PaintInfo& paintInfo, int tx, int ty) | 195 void RenderTableRow::paint(PaintInfo& paintInfo, int tx, int ty) |
| 196 { | 196 { |
| 197 ASSERT(hasLayer()); | 197 ASSERT(m_layer); |
| 198 if (!layer()) | 198 if (!m_layer) |
| 199 return; | 199 return; |
| 200 | 200 |
| 201 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) { | 201 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) { |
| 202 if (child->isTableCell()) { | 202 if (child->isTableCell()) { |
| 203 // Paint the row background behind the cell. | 203 // Paint the row background behind the cell. |
| 204 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase
== PaintPhaseChildBlockBackground) { | 204 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase
== PaintPhaseChildBlockBackground) { |
| 205 RenderTableCell* cell = static_cast<RenderTableCell*>(child); | 205 RenderTableCell* cell = static_cast<RenderTableCell*>(child); |
| 206 cell->paintBackgroundsBehindCell(paintInfo, tx, ty, this); | 206 cell->paintBackgroundsBehindCell(paintInfo, tx, ty, this); |
| 207 } | 207 } |
| 208 if (!child->hasLayer()) | 208 if (!child->hasLayer()) |
| 209 child->paint(paintInfo, tx, ty); | 209 child->paint(paintInfo, tx, ty); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 } | 212 } |
| 213 | 213 |
| 214 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) | 214 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) |
| 215 { | 215 { |
| 216 // FIXME: Examine cells and repaint only the rect the image paints in. | 216 // FIXME: Examine cells and repaint only the rect the image paints in. |
| 217 repaint(); | 217 repaint(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace WebCore | 220 } // namespace WebCore |
| OLD | NEW |