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

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

Issue 804383002: Layout captions in simplifiedNormalFlowLayout for tables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « LayoutTests/fast/table/display-table-caption-crash-expected.txt ('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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (RenderTableSection* section = firstBody()) 380 if (RenderTableSection* section = firstBody())
381 extraLogicalHeight -= section->distributeExtraLogicalHeightToRows(extraL ogicalHeight); 381 extraLogicalHeight -= section->distributeExtraLogicalHeightToRows(extraL ogicalHeight);
382 382
383 // FIXME: We really would like to enable this ASSERT to ensure that all the extra space has been distributed. 383 // FIXME: We really would like to enable this ASSERT to ensure that all the extra space has been distributed.
384 // However our current distribution algorithm does not round properly and th us we can have some remaining height. 384 // However our current distribution algorithm does not round properly and th us we can have some remaining height.
385 // ASSERT(!topSection() || !extraLogicalHeight); 385 // ASSERT(!topSection() || !extraLogicalHeight);
386 } 386 }
387 387
388 void RenderTable::simplifiedNormalFlowLayout() 388 void RenderTable::simplifiedNormalFlowLayout()
389 { 389 {
390 // FIXME: We should walk through the items in the tree in tree order to do t he layout here
391 // instead of walking through individual parts of the tree. crbug.com/442737
392 for (auto& caption : m_captions)
393 layoutCaption(*caption);
mstensho (USE GERRIT) 2014/12/17 19:03:07 This would become the only place in the engine whe
394
390 for (RenderTableSection* section = topSection(); section; section = sectionB elow(section)) { 395 for (RenderTableSection* section = topSection(); section; section = sectionB elow(section)) {
391 section->layoutIfNeeded(); 396 section->layoutIfNeeded();
392 section->computeOverflowFromCells(); 397 section->computeOverflowFromCells();
393 } 398 }
394 } 399 }
395 400
396 void RenderTable::layout() 401 void RenderTable::layout()
397 { 402 {
398 ASSERT(needsLayout()); 403 ASSERT(needsLayout());
399 404
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1342 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1338 { 1343 {
1339 ASSERT(cell->isFirstOrLastCellInRow()); 1344 ASSERT(cell->isFirstOrLastCellInRow());
1340 if (hasSameDirectionAs(cell->row())) 1345 if (hasSameDirectionAs(cell->row()))
1341 return style()->borderEnd(); 1346 return style()->borderEnd();
1342 1347
1343 return style()->borderStart(); 1348 return style()->borderStart();
1344 } 1349 }
1345 1350
1346 } 1351 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/table/display-table-caption-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698