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, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // recalc cell info because RenderTable has unguarded pointers | 92 // recalc cell info because RenderTable has unguarded pointers |
93 // stored that point to this RenderTableSection. | 93 // stored that point to this RenderTableSection. |
94 if (recalcTable) | 94 if (recalcTable) |
95 recalcTable->setNeedsSectionRecalc(); | 95 recalcTable->setNeedsSectionRecalc(); |
96 } | 96 } |
97 | 97 |
98 void RenderTableSection::addChild(RenderObject* child, RenderObject* beforeChild
) | 98 void RenderTableSection::addChild(RenderObject* child, RenderObject* beforeChild
) |
99 { | 99 { |
100 // Make sure we don't append things after :after-generated content if we hav
e it. | 100 // Make sure we don't append things after :after-generated content if we hav
e it. |
101 if (!beforeChild) { | 101 if (!beforeChild) |
102 if (RenderObject* afterContentRenderer = findAfterContentRenderer()) | 102 beforeChild = findAfterContentRenderer(); |
103 beforeChild = anonymousContainer(afterContentRenderer); | |
104 } | |
105 | 103 |
106 if (!child->isTableRow()) { | 104 if (!child->isTableRow()) { |
107 RenderObject* last = beforeChild; | 105 RenderObject* last = beforeChild; |
108 if (!last) | 106 if (!last) |
109 last = lastChild(); | 107 last = lastChild(); |
110 if (last && last->isAnonymous() && !last->isBeforeOrAfterContent()) { | 108 if (last && last->isAnonymous() && !last->isBeforeOrAfterContent()) { |
111 if (beforeChild == last) | 109 if (beforeChild == last) |
112 beforeChild = last->firstChild(); | 110 beforeChild = last->firstChild(); |
113 last->addChild(child, beforeChild); | 111 last->addChild(child, beforeChild); |
114 return; | 112 return; |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 if (static_cast<RenderObject*>(cell)->nodeAtPoint(request, result, point
InContainer, cellPoint, action)) { | 1262 if (static_cast<RenderObject*>(cell)->nodeAtPoint(request, result, point
InContainer, cellPoint, action)) { |
1265 updateHitTestResult(result, toLayoutPoint(pointInContainer - cellPoi
nt)); | 1263 updateHitTestResult(result, toLayoutPoint(pointInContainer - cellPoi
nt)); |
1266 return true; | 1264 return true; |
1267 } | 1265 } |
1268 } | 1266 } |
1269 return false; | 1267 return false; |
1270 | 1268 |
1271 } | 1269 } |
1272 | 1270 |
1273 } // namespace WebCore | 1271 } // namespace WebCore |
OLD | NEW |