Changeset 14816 for trunk/WebCore/rendering/RenderTable.h
- Timestamp:
- 06/11/06 18:10:17 (3 years ago)
- Files:
-
- 1 modified
-
trunk/WebCore/rendering/RenderTable.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/rendering/RenderTable.h
r14598 r14816 28 28 #define RenderTable_H 29 29 30 #include "DeprecatedArray.h"31 30 #include "RenderBlock.h" 31 #include <wtf/Vector.h> 32 32 33 33 namespace WebCore { … … 126 126 }; 127 127 128 DeprecatedArray<int> columnPos;129 DeprecatedArray<ColumnStruct> columns;128 Vector<int> columnPos; 129 Vector<ColumnStruct> columns; 130 130 131 131 void splitColumn(int pos, int firstSpan); … … 133 133 int numEffCols() const { return columns.size(); } 134 134 int spanOfEffCol(int effCol) const { return columns[effCol].span; } 135 int colToEffCol(int col) const { 136 int c = 0; 135 136 int colToEffCol(int col) const 137 { 137 138 int i = 0; 138 while (c < col && i < (int)columns.size()) { 139 int effCol = numEffCols(); 140 for (int c = 0; c < col && i < effCol; ++i) 139 141 c += columns[i].span; 140 i++;141 }142 142 return i; 143 143 } 144 int effColToCol(int effCol) const { 144 145 int effColToCol(int effCol) const 146 { 145 147 int c = 0; 146 148 for (int i = 0; i < effCol; i++)