OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) |
3 * (C) 2002 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License. | 9 * version 2 of the License. |
10 * | 10 * |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 the columns, the extra space should be distributed over the columns. | 62 the columns, the extra space should be distributed over the columns. |
63 | 63 |
64 | 64 |
65 In this manner, the user agent can begin to lay out the table once | 65 In this manner, the user agent can begin to lay out the table once |
66 the entire first row has been received. Cells in subsequent rows do | 66 the entire first row has been received. Cells in subsequent rows do |
67 not affect column widths. Any cell that has content that overflows | 67 not affect column widths. Any cell that has content that overflows |
68 uses the 'overflow' property to determine whether to clip the | 68 uses the 'overflow' property to determine whether to clip the |
69 overflow content. | 69 overflow content. |
70 */ | 70 */ |
71 | 71 |
72 using namespace std; | |
73 | |
74 namespace WebCore { | 72 namespace WebCore { |
75 | 73 |
76 FixedTableLayout::FixedTableLayout(RenderTable* table) | 74 FixedTableLayout::FixedTableLayout(RenderTable* table) |
77 : TableLayout(table) | 75 : TableLayout(table) |
78 { | 76 { |
79 } | 77 } |
80 | 78 |
81 int FixedTableLayout::calcWidthArray() | 79 int FixedTableLayout::calcWidthArray() |
82 { | 80 { |
83 // FIXME: We might want to wait until we have all of the first row before co
mputing for the first time. | 81 // FIXME: We might want to wait until we have all of the first row before co
mputing for the first time. |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 RenderTableRow* row = section->rowRendererAt(i); | 323 RenderTableRow* row = section->rowRendererAt(i); |
326 if (!row) | 324 if (!row) |
327 continue; | 325 continue; |
328 for (RenderTableCell* cell = row->firstCell(); cell; cell = cell->ne
xtCell()) | 326 for (RenderTableCell* cell = row->firstCell(); cell; cell = cell->ne
xtCell()) |
329 cell->setPreferredLogicalWidthsDirty(); | 327 cell->setPreferredLogicalWidthsDirty(); |
330 } | 328 } |
331 } | 329 } |
332 } | 330 } |
333 | 331 |
334 } // namespace WebCore | 332 } // namespace WebCore |
OLD | NEW |