| 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 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return !child->isText() && style && (style->display() == TABLE_COLUMN); | 62 return !child->isText() && style && (style->display() == TABLE_COLUMN); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool RenderTableCol::canHaveChildren() const | 65 bool RenderTableCol::canHaveChildren() const |
| 66 { | 66 { |
| 67 // Cols cannot have children. This is actually necessary to fix a bug | 67 // Cols cannot have children. This is actually necessary to fix a bug |
| 68 // with libraries.uc.edu, which makes a <p> be a table-column. | 68 // with libraries.uc.edu, which makes a <p> be a table-column. |
| 69 return style()->display() == TABLE_COLUMN_GROUP; | 69 return style()->display() == TABLE_COLUMN_GROUP; |
| 70 } | 70 } |
| 71 | 71 |
| 72 IntRect RenderTableCol::clippedOverflowRectForRepaint(RenderBoxModelObject* repa
intContainer) | 72 IntRect RenderTableCol::clippedOverflowRectForRepaint(RenderBox* repaintContaine
r) |
| 73 { | 73 { |
| 74 // For now, just repaint the whole table. | 74 // For now, just repaint the whole table. |
| 75 // FIXME: Find a better way to do this, e.g., need to repaint all the cells
that we | 75 // FIXME: Find a better way to do this, e.g., need to repaint all the cells
that we |
| 76 // might have propagated a background color or borders into. | 76 // might have propagated a background color or borders into. |
| 77 // FIXME: check for repaintContainer each time here? | 77 // FIXME: check for repaintContainer each time here? |
| 78 RenderObject* table = parent(); | 78 RenderObject* table = parent(); |
| 79 if (table && !table->isTable()) | 79 if (table && !table->isTable()) |
| 80 table = table->parent(); | 80 table = table->parent(); |
| 81 if (table && table->isTable()) | 81 if (table && table->isTable()) |
| 82 return table->clippedOverflowRectForRepaint(repaintContainer); | 82 return table->clippedOverflowRectForRepaint(repaintContainer); |
| 83 | 83 |
| 84 return IntRect(); | 84 return IntRect(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void RenderTableCol::imageChanged(WrappedImagePtr, const IntRect*) | 87 void RenderTableCol::imageChanged(WrappedImagePtr, const IntRect*) |
| 88 { | 88 { |
| 89 // FIXME: Repaint only the rect the image paints in. | 89 // FIXME: Repaint only the rect the image paints in. |
| 90 repaint(); | 90 repaint(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } | 93 } |
| OLD | NEW |