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

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

Issue 370593002: Remove updateFirstLetter and firstLineBlock from RenderTable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/RenderTable.h ('k') | no next file » | 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) 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, 2010, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 RenderTableCell* RenderTable::cellAfter(const RenderTableCell* cell) const 1297 RenderTableCell* RenderTable::cellAfter(const RenderTableCell* cell) const
1298 { 1298 {
1299 recalcSectionsIfNeeded(); 1299 recalcSectionsIfNeeded();
1300 1300
1301 unsigned effCol = colToEffCol(cell->col() + cell->colSpan()); 1301 unsigned effCol = colToEffCol(cell->col() + cell->colSpan());
1302 if (effCol >= numEffCols()) 1302 if (effCol >= numEffCols())
1303 return 0; 1303 return 0;
1304 return cell->section()->primaryCellAt(cell->rowIndex(), effCol); 1304 return cell->section()->primaryCellAt(cell->rowIndex(), effCol);
1305 } 1305 }
1306 1306
1307 RenderBlock* RenderTable::firstLineBlock() const
1308 {
1309 return 0;
1310 }
1311
1312 void RenderTable::updateFirstLetter()
1313 {
1314 }
1315
1316 int RenderTable::baselinePosition(FontBaseline baselineType, bool firstLine, Lin eDirectionMode direction, LinePositionMode linePositionMode) const 1307 int RenderTable::baselinePosition(FontBaseline baselineType, bool firstLine, Lin eDirectionMode direction, LinePositionMode linePositionMode) const
1317 { 1308 {
1318 ASSERT(linePositionMode == PositionOnContainingLine); 1309 ASSERT(linePositionMode == PositionOnContainingLine);
1319 int baseline = firstLineBoxBaseline(); 1310 int baseline = firstLineBoxBaseline();
1320 if (baseline != -1) { 1311 if (baseline != -1) {
1321 if (isInline()) 1312 if (isInline())
1322 return beforeMarginInLineDirection(direction) + baseline; 1313 return beforeMarginInLineDirection(direction) + baseline;
1323 return baseline; 1314 return baseline;
1324 } 1315 }
1325 1316
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1418 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1428 { 1419 {
1429 ASSERT(cell->isFirstOrLastCellInRow()); 1420 ASSERT(cell->isFirstOrLastCellInRow());
1430 if (hasSameDirectionAs(cell->row())) 1421 if (hasSameDirectionAs(cell->row()))
1431 return style()->borderEnd(); 1422 return style()->borderEnd();
1432 1423
1433 return style()->borderStart(); 1424 return style()->borderStart();
1434 } 1425 }
1435 1426
1436 } 1427 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698