Changeset 40300 in webkit


Ignore:
Timestamp:
Jan 27, 2009 1:54:33 PM (15 years ago)
Author:
Simon Fraser
Message:

2009-01-27 Simon Fraser <Simon Fraser>

Reviewed by Dave Hyatt

Flip the arguments of computeRectForRepaint() from

computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool)

to

computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool)

Location:
trunk/WebCore
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r40299 r40300  
     12009-01-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Reviewed by Dave Hyatt
     4
     5        Flip the arguments of computeRectForRepaint() from
     6            computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool)
     7        to
     8            computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool)
     9
     10        * rendering/RenderBox.cpp:
     11        (WebCore::RenderBox::clippedOverflowRectForRepaint):
     12        (WebCore::RenderBox::computeRectForRepaint):
     13        * rendering/RenderBox.h:
     14        * rendering/RenderForeignObject.cpp:
     15        (WebCore::RenderForeignObject::computeRectForRepaint):
     16        * rendering/RenderForeignObject.h:
     17        * rendering/RenderInline.cpp:
     18        (WebCore::RenderInline::clippedOverflowRectForRepaint):
     19        * rendering/RenderObject.cpp:
     20        (WebCore::RenderObject::computeRectForRepaint):
     21        * rendering/RenderObject.h:
     22        (WebCore::RenderObject::computeAbsoluteRepaintRect):
     23        * rendering/RenderReplaced.cpp:
     24        (WebCore::RenderReplaced::clippedOverflowRectForRepaint):
     25        * rendering/RenderTableCell.cpp:
     26        (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
     27        (WebCore::RenderTableCell::computeRectForRepaint):
     28        * rendering/RenderTableCell.h:
     29        * rendering/RenderView.cpp:
     30        (WebCore::RenderView::computeRectForRepaint):
     31        * rendering/RenderView.h:
     32
    1332009-01-27  David Kilzer  <ddkilzer@apple.com>
    234
  • trunk/WebCore/rendering/RenderBox.cpp

    r40288 r40300  
    15671567        }
    15681568    }
    1569     computeRectForRepaint(r, repaintContainer);
     1569    computeRectForRepaint(repaintContainer, r);
    15701570    return r;
    15711571}
    15721572
    1573 void RenderBox::computeRectForRepaint(IntRect& rect, RenderBox* repaintContainer, bool fixed)
     1573void RenderBox::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed)
    15741574{
    15751575    if (RenderView* v = view()) {
     
    16521652        rect.setLocation(topLeft);
    16531653   
    1654     o->computeRectForRepaint(rect, repaintContainer, fixed);
     1654    o->computeRectForRepaint(repaintContainer, rect, fixed);
    16551655}
    16561656
  • trunk/WebCore/rendering/RenderBox.h

    r40288 r40300  
    208208
    209209    virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer);
    210     virtual void computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool fixed = false);
     210    virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
    211211    IntSize offsetForPositionedInContainer(RenderObject*) const;
    212212    virtual FloatQuad localToContainerQuad(const FloatQuad&, RenderBox* repaintContainer, bool fixed = false) const;
  • trunk/WebCore/rendering/RenderForeignObject.cpp

    r40288 r40300  
    7171}
    7272
    73 void RenderForeignObject::computeRectForRepaint(IntRect& rect, RenderBox* repaintContainer, bool fixed)
     73void RenderForeignObject::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed)
    7474{
    7575    TransformationMatrix transform = translationForAttributes() * localTransform();
    7676    rect = transform.mapRect(rect);
    7777
    78     RenderBlock::computeRectForRepaint(rect, repaintContainer, fixed);
     78    RenderBlock::computeRectForRepaint(repaintContainer, rect, fixed);
    7979}
    8080
  • trunk/WebCore/rendering/RenderForeignObject.h

    r40288 r40300  
    4343    virtual bool calculateLocalTransform();
    4444
    45     virtual void computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool fixed = false);
     45    virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
    4646    virtual bool requiresLayer() const { return false; }
    4747    virtual void layout();
  • trunk/WebCore/rendering/RenderInline.cpp

    r40288 r40300  
    441441    }
    442442    ASSERT(repaintContainer != this);
    443     cb->computeRectForRepaint(r, repaintContainer);
     443    cb->computeRectForRepaint(repaintContainer, r);
    444444
    445445    if (ow) {
  • trunk/WebCore/rendering/RenderObject.cpp

    r40288 r40300  
    18311831}
    18321832
    1833 void RenderObject::computeRectForRepaint(IntRect& rect, RenderBox* repaintContainer, bool fixed)
     1833void RenderObject::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed)
    18341834{
    18351835    if (repaintContainer == this)
     
    18591859        }
    18601860
    1861         o->computeRectForRepaint(rect, repaintContainer, fixed);
     1861        o->computeRectForRepaint(repaintContainer, rect, fixed);
    18621862    }
    18631863}
  • trunk/WebCore/rendering/RenderObject.h

    r40288 r40300  
    607607    void computeAbsoluteRepaintRect(IntRect& r, bool fixed = false)
    608608    {
    609         return computeRectForRepaint(r, 0, fixed);
     609        return computeRectForRepaint(0, r, fixed);
    610610    }
    611611    // Given a rect in the object's coordinate space, compute a rect suitable for repainting
    612612    // that rect in the coordinate space of repaintContainer.
    613     virtual void computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool fixed = false);
     613    virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
    614614
    615615    virtual unsigned int length() const { return 1; }
  • trunk/WebCore/rendering/RenderReplaced.cpp

    r40288 r40300  
    413413            r.inflate(style()->outlineSize());
    414414    }
    415     computeRectForRepaint(r, repaintContainer);
     415    computeRectForRepaint(repaintContainer, r);
    416416    return r;
    417417}
  • trunk/WebCore/rendering/RenderTableCell.cpp

    r40288 r40300  
    202202        r.move(v->layoutDelta());
    203203    }
    204     computeRectForRepaint(r, repaintContainer);
     204    computeRectForRepaint(repaintContainer, r);
    205205    return r;
    206206}
    207207
    208 void RenderTableCell::computeRectForRepaint(IntRect& r, RenderBox* repaintContainer, bool fixed)
     208void RenderTableCell::computeRectForRepaint(RenderBox* repaintContainer, IntRect& r, bool fixed)
    209209{
    210210    if (repaintContainer == this)
     
    214214    if ((!v || !v->layoutStateEnabled()) && parent())
    215215        r.move(-parentBox()->x(), -parentBox()->y()); // Rows are in the same coordinate space, so don't add their offset in.
    216     RenderBlock::computeRectForRepaint(r, repaintContainer, fixed);
     216    RenderBlock::computeRectForRepaint(repaintContainer, r, fixed);
    217217}
    218218
  • trunk/WebCore/rendering/RenderTableCell.h

    r40288 r40300  
    9696
    9797    virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer);
    98     virtual void computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool fixed = false);
     98    virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
    9999    virtual FloatPoint localToAbsolute(FloatPoint localPoint = FloatPoint(), bool fixed = false, bool useTransforms = false) const;
    100100    virtual FloatPoint absoluteToLocal(FloatPoint containerPoint, bool fixed = false, bool useTransforms = false) const;
  • trunk/WebCore/rendering/RenderView.cpp

    r40288 r40300  
    241241}
    242242
    243 void RenderView::computeRectForRepaint(IntRect& rect, RenderBox* repaintContainer, bool fixed)
     243void RenderView::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed)
    244244{
    245245    // If a container was specified, and was not 0 or the RenderView,
  • trunk/WebCore/rendering/RenderView.h

    r40288 r40300  
    6161    virtual bool hasOverhangingFloats() { return false; }
    6262
    63     virtual void computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool fixed = false);
     63    virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
    6464    virtual void repaintViewRectangle(const IntRect&, bool immediate = false);
    6565
Note: See TracChangeset for help on using the changeset viewer.