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

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

Issue 14488003: Absolutify paths to platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: scripts, iwyu Created 7 years, 8 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/FixedTableLayout.h ('k') | Source/core/rendering/HitTestLocation.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 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #include "config.h" 22 #include "config.h"
23 #include "FixedTableLayout.h" 23 #include "FixedTableLayout.h"
24 24
25 #include "RenderTable.h" 25 #include "RenderTable.h"
26 #include "RenderTableCell.h" 26 #include "RenderTableCell.h"
27 #include "RenderTableCol.h" 27 #include "RenderTableCol.h"
28 #include "RenderTableSection.h" 28 #include "RenderTableSection.h"
29 #include "core/platform/LayoutUnit.h"
29 30
30 /* 31 /*
31 The text below is from the CSS 2.1 specs. 32 The text below is from the CSS 2.1 specs.
32 33
33 Fixed table layout 34 Fixed table layout
34 35
35 With this (fast) algorithm, the horizontal layout of the table does 36 With this (fast) algorithm, the horizontal layout of the table does
36 not depend on the contents of the cells; it only depends on the 37 not depend on the contents of the cells; it only depends on the
37 table's width, the width of the columns, and borders or cell 38 table's width, the width of the columns, and borders or cell
38 spacing. 39 spacing.
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 for (unsigned i = 0; i < nEffCols; i++) { 312 for (unsigned i = 0; i < nEffCols; i++) {
312 m_table->setColumnPosition(i, pos); 313 m_table->setColumnPosition(i, pos);
313 pos += calcWidth[i] + hspacing; 314 pos += calcWidth[i] + hspacing;
314 } 315 }
315 int colPositionsSize = m_table->columnPositions().size(); 316 int colPositionsSize = m_table->columnPositions().size();
316 if (colPositionsSize > 0) 317 if (colPositionsSize > 0)
317 m_table->setColumnPosition(colPositionsSize - 1, pos); 318 m_table->setColumnPosition(colPositionsSize - 1, pos);
318 } 319 }
319 320
320 } // namespace WebCore 321 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/FixedTableLayout.h ('k') | Source/core/rendering/HitTestLocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698