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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 last = lastChild(); | 99 last = lastChild(); |
100 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { | 100 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { |
101 if (beforeChild == last) | 101 if (beforeChild == last) |
102 beforeChild = last->firstChild(); | 102 beforeChild = last->firstChild(); |
103 last->addChild(child, beforeChild); | 103 last->addChild(child, beforeChild); |
104 return; | 104 return; |
105 } | 105 } |
106 | 106 |
107 if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent()
== this) { | 107 if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent()
== this) { |
108 RenderObject* cell = beforeChild->previousSibling(); | 108 RenderObject* cell = beforeChild->previousSibling(); |
109 if (cell && cell->isTableCell()) { | 109 if (cell && cell->isTableCell() && cell->isAnonymous()) { |
110 ASSERT(cell->isAnonymous()); | |
111 cell->addChild(child); | 110 cell->addChild(child); |
112 return; | 111 return; |
113 } | 112 } |
114 } | 113 } |
115 | 114 |
116 // If beforeChild is inside an anonymous cell, insert into the cell. | 115 // If beforeChild is inside an anonymous cell, insert into the cell. |
117 if (last && !last->isTableCell() && last->parent() && last->parent()->is
Anonymous() && !last->parent()->isBeforeOrAfterContent()) { | 116 if (last && !last->isTableCell() && last->parent() && last->parent()->is
Anonymous() && !last->parent()->isBeforeOrAfterContent()) { |
118 last->parent()->addChild(child, beforeChild); | 117 last->parent()->addChild(child, beforeChild); |
119 return; | 118 return; |
120 } | 119 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 241 } |
243 } | 242 } |
244 | 243 |
245 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) | 244 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) |
246 { | 245 { |
247 // FIXME: Examine cells and repaint only the rect the image paints in. | 246 // FIXME: Examine cells and repaint only the rect the image paints in. |
248 repaint(); | 247 repaint(); |
249 } | 248 } |
250 | 249 |
251 } // namespace WebCore | 250 } // namespace WebCore |
OLD | NEW |