Changeset 88189 in webkit


Ignore:
Timestamp:
Jun 6, 2011 2:30:42 PM (13 years ago)
Author:
eae@chromium.org
Message:

2011-06-06 Emil A Eklund <eae@chromium.org>

Reviewed by Eric Seidel.

Convert RenderBox::popContentsClip to IntPoint
https://bugs.webkit.org/show_bug.cgi?id=62132

Covered by existing tests.

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::paint):
  • rendering/RenderBox.cpp: (WebCore::RenderBox::popContentsClip):
  • rendering/RenderBox.h:
  • rendering/RenderTable.cpp: (WebCore::RenderTable::paint):
  • rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::paint):
Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88188 r88189  
     12011-06-06  Emil A Eklund  <eae@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Convert RenderBox::popContentsClip to IntPoint
     6        https://bugs.webkit.org/show_bug.cgi?id=62132
     7
     8        Covered by existing tests.
     9
     10        * rendering/RenderBlock.cpp:
     11        (WebCore::RenderBlock::paint):
     12        * rendering/RenderBox.cpp:
     13        (WebCore::RenderBox::popContentsClip):
     14        * rendering/RenderBox.h:
     15        * rendering/RenderTable.cpp:
     16        (WebCore::RenderTable::paint):
     17        * rendering/RenderTableSection.cpp:
     18        (WebCore::RenderTableSection::paint):
     19
    1202011-06-06  Levi Weintraub  <leviw@chromium.org>
    221
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r88176 r88189  
    22612261    paintObject(paintInfo, IntPoint(tx, ty));
    22622262    if (pushedClip)
    2263         popContentsClip(paintInfo, phase, tx, ty);
     2263        popContentsClip(paintInfo, phase, IntPoint(tx, ty));
    22642264
    22652265    // Our scrollbar widgets paint exactly when we tell them to, so that they work properly with
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r88183 r88189  
    11231123}
    11241124
    1125 void RenderBox::popContentsClip(PaintInfo& paintInfo, PaintPhase originalPhase, int tx, int ty)
     1125void RenderBox::popContentsClip(PaintInfo& paintInfo, PaintPhase originalPhase, const IntPoint& accumulatedOffset)
    11261126{
    11271127    ASSERT(hasControlClip() || (hasOverflowClip() && !layer()->isSelfPaintingLayer()));
     
    11301130    if (originalPhase == PaintPhaseOutline) {
    11311131        paintInfo.phase = PaintPhaseSelfOutline;
    1132         paintObject(paintInfo, IntPoint(tx, ty));
     1132        paintObject(paintInfo, accumulatedOffset);
    11331133        paintInfo.phase = originalPhase;
    11341134    } else if (originalPhase == PaintPhaseChildBlockBackground)
  • trunk/Source/WebCore/rendering/RenderBox.h

    r88183 r88189  
    351351    virtual IntRect controlClipRect(const IntPoint&) const { return IntRect(); }
    352352    bool pushContentsClip(PaintInfo&, int tx, int ty);
    353     void popContentsClip(PaintInfo&, PaintPhase originalPhase, int tx, int ty);
     353    void popContentsClip(PaintInfo&, PaintPhase originalPhase, const IntPoint& accumulatedOffset);
    354354
    355355    virtual void paintObject(PaintInfo&, const IntPoint&) { ASSERT_NOT_REACHED(); }
  • trunk/Source/WebCore/rendering/RenderTable.cpp

    r88102 r88189  
    471471    paintObject(paintInfo, IntPoint(tx, ty));
    472472    if (pushedClip)
    473         popContentsClip(paintInfo, paintPhase, tx, ty);
     473        popContentsClip(paintInfo, paintPhase, IntPoint(tx, ty));
    474474}
    475475
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r88102 r88189  
    907907    paintObject(paintInfo, IntPoint(tx, ty));
    908908    if (pushedClip)
    909         popContentsClip(paintInfo, phase, tx, ty);
     909        popContentsClip(paintInfo, phase, IntPoint(tx, ty));
    910910}
    911911
Note: See TracChangeset for help on using the changeset viewer.