Changeset 86389 in webkit


Ignore:
Timestamp:
May 12, 2011 3:31:56 PM (13 years ago)
Author:
eae@chromium.org
Message:

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

Reviewed by Darin Adler.

Replace IntPoint with const IntPoint& in RenderFlexibleBox::placeChild
https://bugs.webkit.org/show_bug.cgi?id=60640

Pass by const reference instead of by value for consistency reasons.

Refactoring, covered by existing tests.

  • rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::placeChild):
  • rendering/RenderFlexibleBox.h: Use const IntPoint& instead of just IntPoint to avoid extra constructor overhead
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86388 r86389  
     12011-05-12  Emil A Eklund  <eae@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Replace IntPoint with const IntPoint& in RenderFlexibleBox::placeChild
     6        https://bugs.webkit.org/show_bug.cgi?id=60640
     7
     8        Pass by const reference instead of by value for consistency reasons.
     9
     10        Refactoring, covered by existing tests.
     11
     12        * rendering/RenderFlexibleBox.cpp:
     13        (WebCore::RenderFlexibleBox::placeChild):
     14        * rendering/RenderFlexibleBox.h:
     15        Use const IntPoint& instead of just IntPoint to avoid extra constructor overhead
     16
    1172011-05-12  Dan Bernstein  <mitz@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r86222 r86389  
    934934}
    935935
    936 void RenderFlexibleBox::placeChild(RenderBox* child, IntPoint location)
     936void RenderFlexibleBox::placeChild(RenderBox* child, const IntPoint& location)
    937937{
    938938    IntRect oldRect = child->frameRect();
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.h

    r86222 r86389  
    5151    virtual bool isStretchingChildren() const { return m_stretchingChildren; }
    5252
    53     void placeChild(RenderBox* child, IntPoint location);
     53    void placeChild(RenderBox* child, const IntPoint& location);
    5454
    5555protected:
Note: See TracChangeset for help on using the changeset viewer.