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, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 last = lastChild(); | 92 last = lastChild(); |
93 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { | 93 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { |
94 if (beforeChild == last) | 94 if (beforeChild == last) |
95 beforeChild = last->firstChild(); | 95 beforeChild = last->firstChild(); |
96 last->addChild(child, beforeChild); | 96 last->addChild(child, beforeChild); |
97 return; | 97 return; |
98 } | 98 } |
99 | 99 |
100 if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent()
== this) { | 100 if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent()
== this) { |
101 RenderObject* cell = beforeChild->previousSibling(); | 101 RenderObject* cell = beforeChild->previousSibling(); |
102 if (cell && cell->isTableCell()) { | 102 if (cell && cell->isTableCell() && cell->isAnonymous()) { |
103 ASSERT(cell->isAnonymous()); | |
104 cell->addChild(child); | 103 cell->addChild(child); |
105 return; | 104 return; |
106 } | 105 } |
107 } | 106 } |
108 | 107 |
109 // If beforeChild is inside an anonymous cell, insert into the cell. | 108 // If beforeChild is inside an anonymous cell, insert into the cell. |
110 if (last && !last->isTableCell() && last->parent() && last->parent()->is
Anonymous() && !last->parent()->isBeforeOrAfterContent()) { | 109 if (last && !last->isTableCell() && last->parent() && last->parent()->is
Anonymous() && !last->parent()->isBeforeOrAfterContent()) { |
111 last->parent()->addChild(child, beforeChild); | 110 last->parent()->addChild(child, beforeChild); |
112 return; | 111 return; |
113 } | 112 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 234 } |
236 } | 235 } |
237 | 236 |
238 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) | 237 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) |
239 { | 238 { |
240 // FIXME: Examine cells and repaint only the rect the image paints in. | 239 // FIXME: Examine cells and repaint only the rect the image paints in. |
241 repaint(); | 240 repaint(); |
242 } | 241 } |
243 | 242 |
244 } // namespace WebCore | 243 } // namespace WebCore |
OLD | NEW |