Changeset 25174 in webkit


Ignore:
Timestamp:
Aug 21, 2007, 12:12:11 PM (18 years ago)
Author:
adele
Message:

Build fix for release build.

  • rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::calcEffectiveWidth): (WebCore::AutoTableLayout::layout):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r25171 r25174  
     12007-08-21  Adele Peterson  <adele@apple.com>
     2
     3        Build fix for release build.
     4
     5        * rendering/AutoTableLayout.cpp:
     6        (WebCore::AutoTableLayout::calcEffectiveWidth):
     7        (WebCore::AutoTableLayout::layout):
     8
    192007-08-21  Mitz Pettel  <mitz@webkit.org>
    210
  • trunk/WebCore/rendering/AutoTableLayout.cpp

    r25171 r25174  
    401401                for (unsigned int pos = col; pos < lastCol && totalWidth > 0; pos++) {
    402402                    if (!(m_layoutStruct[pos].effWidth.isPercent())) {
    403                         int percent = percentMissing * static_cast<float>(m_layoutStruct[pos].effMaxWidth) / totalWidth;
     403                        int percent = static_cast<int>(percentMissing * static_cast<float>(m_layoutStruct[pos].effMaxWidth) / totalWidth);
    404404                        totalWidth -= m_layoutStruct[pos].effMaxWidth;
    405405                        percentMissing -= percent;
     
    658658            Length &width = m_layoutStruct[i].effWidth;
    659659            if (width.isFixed()) {
    660                 int w = available * static_cast<float>(m_layoutStruct[i].effMaxWidth) / totalFixed;
     660                int w = static_cast<int>(available * static_cast<float>(m_layoutStruct[i].effMaxWidth) / totalFixed);
    661661                available -= w;
    662662                totalFixed -= m_layoutStruct[i].effMaxWidth;
Note: See TracChangeset for help on using the changeset viewer.