Changeset 112316 in webkit


Ignore:
Timestamp:
Mar 27, 2012 2:34:21 PM (12 years ago)
Author:
leviw@chromium.org
Message:

Correct LayoutUnit usage in virtual function layoutBlock in RenderFlexibleBox
https://bugs.webkit.org/show_bug.cgi?id=82344

Reviewed by Eric Seidel.

Correcting the signature of RenderFlexibleBox::layoutBlock to use a LayoutUnit
for the page height, and avoiding assigning the renderer's size to an IntSize.

No new tests. No change in behavior.

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::layoutBlock):

  • rendering/RenderFlexibleBox.h:

(RenderFlexibleBox):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112312 r112316  
     12012-03-27  Levi Weintraub  <leviw@chromium.org>
     2
     3        Correct LayoutUnit usage in virtual function layoutBlock in RenderFlexibleBox
     4        https://bugs.webkit.org/show_bug.cgi?id=82344
     5
     6        Reviewed by Eric Seidel.
     7
     8        Correcting the signature of RenderFlexibleBox::layoutBlock to use a LayoutUnit
     9        for the page height, and avoiding assigning the renderer's size to an IntSize.
     10
     11        No new tests. No change in behavior.
     12
     13        * rendering/RenderFlexibleBox.cpp:
     14        (WebCore::RenderFlexibleBox::layoutBlock):
     15        * rendering/RenderFlexibleBox.h:
     16        (RenderFlexibleBox):
     17
    1182012-03-27  Timothy Hatcher  <timothy@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r112301 r112316  
    231231}
    232232
    233 void RenderFlexibleBox::layoutBlock(bool relayoutChildren, int, BlockLayoutPass)
     233void RenderFlexibleBox::layoutBlock(bool relayoutChildren, LayoutUnit, BlockLayoutPass)
    234234{
    235235    ASSERT(needsLayout());
     
    248248    computeInitialRegionRangeForBlock();
    249249
    250     IntSize previousSize = size();
     250    LayoutSize previousSize = size();
    251251
    252252    setLogicalHeight(0);
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.h

    r112156 r112316  
    4545    virtual bool isFlexibleBox() const { return true; }
    4646    virtual void computePreferredLogicalWidths();
    47     virtual void layoutBlock(bool relayoutChildren, int pageLogicalHeight = 0, BlockLayoutPass = NormalLayoutPass);
     47    virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0, BlockLayoutPass = NormalLayoutPass);
    4848
    4949    bool isHorizontalFlow() const;
Note: See TracChangeset for help on using the changeset viewer.