Ignore:
Timestamp:
Apr 18, 2012, 11:31:35 AM (13 years ago)
Author:
[email protected]
Message:

Use explicit casts for size_t to unsigned conversion
https://bugs.webkit.org/show_bug.cgi?id=83602

Reviewed by Eric Seidel.

No new tests, no change in functinality.

Not all platforms have implicit casts from size_t to unsigned and we
can't add size_t versions of the operators to FractionalLayoutUnit for
all platforms as it would conflict with the unsigned versions of same.

Change support methods to take unsigned instead of size_t and use
explicit casts when multiplying or dividing a FractionalLayoutUnit with
a size_t and the other way around.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::adjustForColumns):

  • rendering/RenderFlexibleBox.cpp:

(WebCore::initialPackingOffset):
(WebCore::packingSpaceBetweenChildren):
(WebCore::initialLinePackingOffset):
(WebCore::linePackingSpaceBetweenChildren):
(WebCore::RenderFlexibleBox::packFlexLines):

  • rendering/RenderFrameSet.cpp:

(WebCore::RenderFrameSet::layout):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderFrameSet.cpp

    r114079 r114537  
    473473    }
    474474
    475     size_t cols = frameSet()->totalCols();
    476     size_t rows = frameSet()->totalRows();
     475    unsigned cols = frameSet()->totalCols();
     476    unsigned rows = frameSet()->totalRows();
    477477
    478478    if (m_rows.m_sizes.size() != rows || m_cols.m_sizes.size() != cols) {
Note: See TracChangeset for help on using the changeset viewer.