| 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 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 { | 219 { |
| 220 } | 220 } |
| 221 | 221 |
| 222 void RenderTableCell::setCellLogicalWidth(int tableLayoutLogicalWidth, SubtreeLa
youtScope& layouter) | 222 void RenderTableCell::setCellLogicalWidth(int tableLayoutLogicalWidth, SubtreeLa
youtScope& layouter) |
| 223 { | 223 { |
| 224 if (tableLayoutLogicalWidth == logicalWidth()) | 224 if (tableLayoutLogicalWidth == logicalWidth()) |
| 225 return; | 225 return; |
| 226 | 226 |
| 227 layouter.setNeedsLayout(this); | 227 layouter.setNeedsLayout(this); |
| 228 | 228 |
| 229 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled() | 229 if (!table()->selfNeedsLayout() && checkForRepaintDuringLayout()) |
| 230 && !table()->selfNeedsLayout() && checkForRepaintDuringLayout()) | |
| 231 repaint(); | 230 repaint(); |
| 232 | 231 |
| 233 setLogicalWidth(tableLayoutLogicalWidth); | 232 setLogicalWidth(tableLayoutLogicalWidth); |
| 234 setCellWidthChanged(true); | 233 setCellWidthChanged(true); |
| 235 } | 234 } |
| 236 | 235 |
| 237 void RenderTableCell::layout() | 236 void RenderTableCell::layout() |
| 238 { | 237 { |
| 239 ASSERT(needsLayout()); | 238 ASSERT(needsLayout()); |
| 240 | 239 |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 | 1273 |
| 1275 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) | 1274 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) |
| 1276 { | 1275 { |
| 1277 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen
t()); | 1276 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen
t()); |
| 1278 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); | 1277 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); |
| 1279 newCell->setStyle(newStyle.release()); | 1278 newCell->setStyle(newStyle.release()); |
| 1280 return newCell; | 1279 return newCell; |
| 1281 } | 1280 } |
| 1282 | 1281 |
| 1283 } // namespace WebCore | 1282 } // namespace WebCore |
| OLD | NEW |