Changeset 25174 in webkit
- Timestamp:
- Aug 21, 2007, 12:12:11 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r25171 r25174 1 2007-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 1 9 2007-08-21 Mitz Pettel <mitz@webkit.org> 2 10 -
trunk/WebCore/rendering/AutoTableLayout.cpp
r25171 r25174 401 401 for (unsigned int pos = col; pos < lastCol && totalWidth > 0; pos++) { 402 402 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); 404 404 totalWidth -= m_layoutStruct[pos].effMaxWidth; 405 405 percentMissing -= percent; … … 658 658 Length &width = m_layoutStruct[i].effWidth; 659 659 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); 661 661 available -= w; 662 662 totalFixed -= m_layoutStruct[i].effMaxWidth;
Note:
See TracChangeset
for help on using the changeset viewer.