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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 RenderBox::styleDidChange(diff, oldStyle); | 76 RenderBox::styleDidChange(diff, oldStyle); |
77 propagateStyleToAnonymousChildren(); | 77 propagateStyleToAnonymousChildren(); |
78 | 78 |
79 if (parent()) | 79 if (parent()) |
80 updateBeforeAndAfterContent(); | 80 updateBeforeAndAfterContent(); |
81 } | 81 } |
82 | 82 |
83 void RenderTableRow::addChild(RenderObject* child, RenderObject* beforeChild) | 83 void RenderTableRow::addChild(RenderObject* child, RenderObject* beforeChild) |
84 { | 84 { |
85 // Make sure we don't append things after :after-generated content if we hav
e it. | 85 // Make sure we don't append things after :after-generated content if we hav
e it. |
86 if (!beforeChild) { | 86 if (!beforeChild) |
87 if (RenderObject* afterContentRenderer = findAfterContentRenderer()) | 87 beforeChild = findAfterContentRenderer(); |
88 beforeChild = anonymousContainer(afterContentRenderer); | |
89 } | |
90 | 88 |
91 if (!child->isTableCell()) { | 89 if (!child->isTableCell()) { |
92 RenderObject* last = beforeChild; | 90 RenderObject* last = beforeChild; |
93 if (!last) | 91 if (!last) |
94 last = lastChild(); | 92 last = lastChild(); |
95 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { | 93 if (last && last->isAnonymous() && last->isTableCell() && !last->isBefor
eOrAfterContent()) { |
96 if (beforeChild == last) | 94 if (beforeChild == last) |
97 beforeChild = last->firstChild(); | 95 beforeChild = last->firstChild(); |
98 last->addChild(child, beforeChild); | 96 last->addChild(child, beforeChild); |
99 return; | 97 return; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 226 } |
229 } | 227 } |
230 | 228 |
231 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) | 229 void RenderTableRow::imageChanged(WrappedImagePtr, const IntRect*) |
232 { | 230 { |
233 // FIXME: Examine cells and repaint only the rect the image paints in. | 231 // FIXME: Examine cells and repaint only the rect the image paints in. |
234 repaint(); | 232 repaint(); |
235 } | 233 } |
236 | 234 |
237 } // namespace WebCore | 235 } // namespace WebCore |
OLD | NEW |