Changeset 88063 in webkit
- Timestamp:
- Jun 3, 2011 2:45:05 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88062 r88063 1 2011-06-03 Levi Weintraub <leviw@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Switch paintCell to use IntPoint 6 https://bugs.webkit.org/show_bug.cgi?id=62033 7 8 Switching paintCell to take an IntPoint representing the paint offset 9 instead of a pair of ints. 10 11 No new tests since this is simple refactoring. 12 13 * rendering/RenderTableSection.cpp: 14 (WebCore::RenderTableSection::paintCell): 15 (WebCore::RenderTableSection::paintObject): 16 * rendering/RenderTableSection.h: 17 1 18 2011-06-03 Martin Robinson <mrobinson@igalia.com> 2 19 -
trunk/Source/WebCore/rendering/RenderTableSection.cpp
r88051 r88063 915 915 } 916 916 917 void RenderTableSection::paintCell(RenderTableCell* cell, PaintInfo& paintInfo, int tx, int ty)918 { 919 IntPoint cellPoint = flipForWritingMode(cell, IntPoint(tx, ty), ParentToChildFlippingAdjustment);917 void RenderTableSection::paintCell(RenderTableCell* cell, PaintInfo& paintInfo, const IntPoint& paintOffset) 918 { 919 IntPoint cellPoint = flipForWritingMode(cell, paintOffset, ParentToChildFlippingAdjustment); 920 920 PaintPhase paintPhase = paintInfo.phase; 921 921 RenderTableRow* row = toRenderTableRow(cell->parent()); … … 1019 1019 if (!cell || (r > startrow && primaryCellAt(r - 1, c) == cell) || (c > startcol && primaryCellAt(r, c - 1) == cell)) 1020 1020 continue; 1021 paintCell(cell, paintInfo, tx, ty);1021 paintCell(cell, paintInfo, IntPoint(tx, ty)); 1022 1022 } 1023 1023 } … … 1046 1046 // Paint the cells. 1047 1047 for (int i = 0; i < size; ++i) 1048 paintCell(cells[i], paintInfo, tx, ty);1048 paintCell(cells[i], paintInfo, IntPoint(tx, ty)); 1049 1049 } 1050 1050 } -
trunk/Source/WebCore/rendering/RenderTableSection.h
r86705 r88063 134 134 135 135 virtual void paint(PaintInfo&, int tx, int ty); 136 virtual void paintCell(RenderTableCell*, PaintInfo&, int tx, int ty);136 virtual void paintCell(RenderTableCell*, PaintInfo&, const IntPoint&); 137 137 virtual void paintObject(PaintInfo&, int tx, int ty); 138 138
Note: See TracChangeset
for help on using the changeset viewer.