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, 2009 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 bool RenderTableCol::canHaveChildren() const | 96 bool RenderTableCol::canHaveChildren() const |
97 { | 97 { |
98 // Cols cannot have children. This is actually necessary to fix a bug | 98 // Cols cannot have children. This is actually necessary to fix a bug |
99 // with libraries.uc.edu, which makes a <p> be a table-column. | 99 // with libraries.uc.edu, which makes a <p> be a table-column. |
100 return isTableColumnGroup(); | 100 return isTableColumnGroup(); |
101 } | 101 } |
102 | 102 |
103 LayoutRect RenderTableCol::clippedOverflowRectForPaintInvalidation(const RenderL
ayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paint
InvalidationState) const | 103 LayoutRect RenderTableCol::clippedOverflowRectForPaintInvalidation(const RenderL
ayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paint
InvalidationState) const |
104 { | 104 { |
105 // For now, just repaint the whole table. | 105 // For now, just paint invalidate the whole table. |
106 // FIXME: Find a better way to do this, e.g., need to repaint all the cells
that we | 106 // FIXME: Find a better way to do this, e.g., need to paint invalidate all t
he cells that we |
107 // might have propagated a background color or borders into. | 107 // might have propagated a background color or borders into. |
108 // FIXME: check for paintInvalidationContainer each time here? | 108 // FIXME: check for paintInvalidationContainer each time here? |
109 | 109 |
110 RenderTable* parentTable = table(); | 110 RenderTable* parentTable = table(); |
111 if (!parentTable) | 111 if (!parentTable) |
112 return LayoutRect(); | 112 return LayoutRect(); |
113 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio
nContainer, paintInvalidationState); | 113 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio
nContainer, paintInvalidationState); |
114 } | 114 } |
115 | 115 |
116 void RenderTableCol::imageChanged(WrappedImagePtr, const IntRect*) | 116 void RenderTableCol::imageChanged(WrappedImagePtr, const IntRect*) |
117 { | 117 { |
118 // FIXME: Repaint only the rect the image paints in. | 118 // FIXME: Issue paint invalidation of only the rect the image paints in. |
119 paintInvalidationForWholeRenderer(); | 119 paintInvalidationForWholeRenderer(); |
120 } | 120 } |
121 | 121 |
122 void RenderTableCol::clearPreferredLogicalWidthsDirtyBits() | 122 void RenderTableCol::clearPreferredLogicalWidthsDirtyBits() |
123 { | 123 { |
124 clearPreferredLogicalWidthsDirty(); | 124 clearPreferredLogicalWidthsDirty(); |
125 | 125 |
126 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) | 126 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) |
127 child->clearPreferredLogicalWidthsDirty(); | 127 child->clearPreferredLogicalWidthsDirty(); |
128 } | 128 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return style()->borderStart(); | 180 return style()->borderStart(); |
181 } | 181 } |
182 | 182 |
183 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const | 183 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const |
184 { | 184 { |
185 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); | 185 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); |
186 return style()->borderEnd(); | 186 return style()->borderEnd(); |
187 } | 187 } |
188 | 188 |
189 } | 189 } |
OLD | NEW |