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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 void RenderTableCell::colSpanOrRowSpanChanged() | 98 void RenderTableCell::colSpanOrRowSpanChanged() |
99 { | 99 { |
100 ASSERT(node()); | 100 ASSERT(node()); |
101 ASSERT(isHTMLTableCellElement(*node())); | 101 ASSERT(isHTMLTableCellElement(*node())); |
102 | 102 |
103 updateColAndRowSpanFlags(); | 103 updateColAndRowSpanFlags(); |
104 | 104 |
105 // FIXME: I suspect that we could return early here if !m_hasColSpan && !m_h
asRowSpan. | 105 // FIXME: I suspect that we could return early here if !m_hasColSpan && !m_h
asRowSpan. |
106 | 106 |
107 setNeedsLayoutAndPrefWidthsRecalc(); | 107 setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); |
108 if (parent() && section()) | 108 if (parent() && section()) |
109 section()->setNeedsCellRecalc(); | 109 section()->setNeedsCellRecalc(); |
110 } | 110 } |
111 | 111 |
112 Length RenderTableCell::logicalWidthFromColumns(RenderTableCol* firstColForThisC
ell, Length widthFromStyle) const | 112 Length RenderTableCell::logicalWidthFromColumns(RenderTableCol* firstColForThisC
ell, Length widthFromStyle) const |
113 { | 113 { |
114 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col
())); | 114 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col
())); |
115 RenderTableCol* tableCol = firstColForThisCell; | 115 RenderTableCol* tableCol = firstColForThisCell; |
116 | 116 |
117 unsigned colSpanCount = colSpan(); | 117 unsigned colSpanCount = colSpan(); |
(...skipping 1155 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 |