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