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

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

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/RenderTableCol.cpp ('k') | Source/core/rendering/RenderText.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) 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 if (!cell->isTableCell()) 1513 if (!cell->isTableCell())
1514 continue; 1514 continue;
1515 1515
1516 RenderTableCell* tableCell = toRenderTableCell(cell); 1516 RenderTableCell* tableCell = toRenderTableCell(cell);
1517 addCell(tableCell, tableRow); 1517 addCell(tableCell, tableRow);
1518 } 1518 }
1519 } 1519 }
1520 } 1520 }
1521 1521
1522 m_grid.shrinkToFit(); 1522 m_grid.shrinkToFit();
1523 setNeedsLayout(); 1523 setNeedsLayoutAndFullRepaint();
1524 } 1524 }
1525 1525
1526 // FIXME: This function could be made O(1) in certain cases (like for the non-mo st-constrainive cells' case). 1526 // FIXME: This function could be made O(1) in certain cases (like for the non-mo st-constrainive cells' case).
1527 void RenderTableSection::rowLogicalHeightChanged(unsigned rowIndex) 1527 void RenderTableSection::rowLogicalHeightChanged(unsigned rowIndex)
1528 { 1528 {
1529 if (needsCellRecalc()) 1529 if (needsCellRecalc())
1530 return; 1530 return;
1531 1531
1532 setRowLogicalHeightToRowStyleLogicalHeight(m_grid[rowIndex]); 1532 setRowLogicalHeightToRowStyleLogicalHeight(m_grid[rowIndex]);
1533 1533
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 else 1731 else
1732 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing); 1732 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing);
1733 1733
1734 cell->setLogicalLocation(cellLocation); 1734 cell->setLogicalLocation(cellLocation);
1735 1735
1736 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) 1736 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
1737 view()->addLayoutDelta(oldCellLocation - cell->location()); 1737 view()->addLayoutDelta(oldCellLocation - cell->location());
1738 } 1738 }
1739 1739
1740 } // namespace WebCore 1740 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCol.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698