Changeset 88063 in webkit


Ignore:
Timestamp:
Jun 3, 2011 2:45:05 PM (13 years ago)
Author:
leviw@chromium.org
Message:

2011-06-03 Levi Weintraub <leviw@chromium.org>

Reviewed by Eric Seidel.

Switch paintCell to use IntPoint
https://bugs.webkit.org/show_bug.cgi?id=62033

Switching paintCell to take an IntPoint representing the paint offset
instead of a pair of ints.

No new tests since this is simple refactoring.

  • rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::paintCell): (WebCore::RenderTableSection::paintObject):
  • rendering/RenderTableSection.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88062 r88063  
     12011-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
    1182011-06-03  Martin Robinson  <mrobinson@igalia.com>
    219
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r88051 r88063  
    915915}
    916916
    917 void RenderTableSection::paintCell(RenderTableCell* cell, PaintInfo& paintInfo, int tx, int ty)
    918 {
    919     IntPoint cellPoint = flipForWritingMode(cell, IntPoint(tx, ty), ParentToChildFlippingAdjustment);
     917void RenderTableSection::paintCell(RenderTableCell* cell, PaintInfo& paintInfo, const IntPoint& paintOffset)
     918{
     919    IntPoint cellPoint = flipForWritingMode(cell, paintOffset, ParentToChildFlippingAdjustment);
    920920    PaintPhase paintPhase = paintInfo.phase;
    921921    RenderTableRow* row = toRenderTableRow(cell->parent());
     
    10191019                    if (!cell || (r > startrow && primaryCellAt(r - 1, c) == cell) || (c > startcol && primaryCellAt(r, c - 1) == cell))
    10201020                        continue;
    1021                     paintCell(cell, paintInfo, tx, ty);
     1021                    paintCell(cell, paintInfo, IntPoint(tx, ty));
    10221022                }
    10231023            }
     
    10461046            // Paint the cells.
    10471047            for (int i = 0; i < size; ++i)
    1048                 paintCell(cells[i], paintInfo, tx, ty);
     1048                paintCell(cells[i], paintInfo, IntPoint(tx, ty));
    10491049        }
    10501050    }
  • trunk/Source/WebCore/rendering/RenderTableSection.h

    r86705 r88063  
    134134
    135135    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&);
    137137    virtual void paintObject(PaintInfo&, int tx, int ty);
    138138
Note: See TracChangeset for help on using the changeset viewer.