Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: Source/core/rendering/FixedTableLayout.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/FastTextAutosizer.cpp ('k') | Source/core/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 } 131 }
132 132
133 // Iterate over the first row in case some are unspecified. 133 // Iterate over the first row in case some are unspecified.
134 RenderTableSection* section = m_table->topNonEmptySection(); 134 RenderTableSection* section = m_table->topNonEmptySection();
135 if (!section) 135 if (!section)
136 return usedWidth; 136 return usedWidth;
137 137
138 unsigned currentColumn = 0; 138 unsigned currentColumn = 0;
139 139
140 RenderObject* firstRow = section->firstChild(); 140 RenderTableRow* firstRow = toRenderTableRow(section->firstChild());
141 for (RenderObject* child = firstRow->firstChild(); child; child = child->nex tSibling()) { 141 for (RenderObject* child = firstRow->firstChild(); child; child = child->nex tSibling()) {
142 if (!child->isTableCell()) 142 if (!child->isTableCell())
143 continue; 143 continue;
144 144
145 RenderTableCell* cell = toRenderTableCell(child); 145 RenderTableCell* cell = toRenderTableCell(child);
146 146
147 Length logicalWidth = cell->styleOrColLogicalWidth(); 147 Length logicalWidth = cell->styleOrColLogicalWidth();
148 unsigned span = cell->colSpan(); 148 unsigned span = cell->colSpan();
149 int fixedBorderBoxLogicalWidth = 0; 149 int fixedBorderBoxLogicalWidth = 0;
150 // FIXME: Support other length types. If the width is non-auto, it shoul d probably just use 150 // FIXME: Support other length types. If the width is non-auto, it shoul d probably just use
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 for (RenderObject* cell = row->firstChild(); cell; cell = cell->next Sibling()) { 333 for (RenderObject* cell = row->firstChild(); cell; cell = cell->next Sibling()) {
334 if (!cell->isTableCell()) 334 if (!cell->isTableCell())
335 continue; 335 continue;
336 cell->setPreferredLogicalWidthsDirty(); 336 cell->setPreferredLogicalWidthsDirty();
337 } 337 }
338 } 338 }
339 } 339 }
340 } 340 }
341 341
342 } // namespace WebCore 342 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/FastTextAutosizer.cpp ('k') | Source/core/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698