| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 ASSERT(!beforeChild || beforeChild->isTableCell()); | 150 ASSERT(!beforeChild || beforeChild->isTableCell()); |
| 151 RenderBox::addChild(cell, beforeChild); | 151 RenderBox::addChild(cell, beforeChild); |
| 152 | 152 |
| 153 if (beforeChild || nextSibling()) | 153 if (beforeChild || nextSibling()) |
| 154 section()->setNeedsCellRecalc(); | 154 section()->setNeedsCellRecalc(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void RenderTableRow::layout() | 157 void RenderTableRow::layout() |
| 158 { | 158 { |
| 159 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 160 ASSERT(needsLayout()); | 159 ASSERT(needsLayout()); |
| 161 | 160 |
| 162 // Table rows do not add translation. | 161 // Table rows do not add translation. |
| 163 LayoutStateMaintainer statePusher(view(), this, LayoutSize(), style()->isFli
ppedBlocksWritingMode()); | 162 LayoutStateMaintainer statePusher(view(), this, LayoutSize(), style()->isFli
ppedBlocksWritingMode()); |
| 164 | 163 |
| 165 bool paginated = view()->layoutState()->isPaginated(); | 164 bool paginated = view()->layoutState()->isPaginated(); |
| 166 | 165 |
| 167 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) { | 166 for (RenderObject* child = firstChild(); child; child = child->nextSibling()
) { |
| 168 if (child->isTableCell()) { | 167 if (child->isTableCell()) { |
| 169 SubtreeLayoutScope layouter(child); | 168 SubtreeLayoutScope layouter(child); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 275 |
| 277 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb
ject* parent) | 276 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb
ject* parent) |
| 278 { | 277 { |
| 279 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document())
; | 278 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document())
; |
| 280 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW); | 279 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_ROW); |
| 281 newRow->setStyle(newStyle.release()); | 280 newRow->setStyle(newStyle.release()); |
| 282 return newRow; | 281 return newRow; |
| 283 } | 282 } |
| 284 | 283 |
| 285 } // namespace WebCore | 284 } // namespace WebCore |
| OLD | NEW |