Title: [106868] branches/subpixellayout/Source/WebCore/rendering/RenderFrameSet.cpp
- Revision
- 106868
- Author
- [email protected]
- Date
- 2012-02-06 16:09:22 -0800 (Mon, 06 Feb 2012)
Log Message
Call intValue on grid lengths instead of explicitly operating on floats when we only use integer precision for FrameSets.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/rendering/RenderFrameSet.cpp (106867 => 106868)
--- branches/subpixellayout/Source/WebCore/rendering/RenderFrameSet.cpp 2012-02-07 00:08:27 UTC (rev 106867)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderFrameSet.cpp 2012-02-07 00:09:22 UTC (rev 106868)
@@ -217,7 +217,7 @@
// Count the total length of all of the fixed columns/rows -> totalFixed
// Count the number of columns/rows which are fixed -> countFixed
if (grid[i].isFixed()) {
- gridLayout[i] = max<float>(grid[i].value(), 0);
+ gridLayout[i] = max(grid[i].intValue(), 0);
totalFixed += gridLayout[i];
countFixed++;
}
@@ -233,7 +233,7 @@
// Count the total relative of all the relative columns/rows -> totalRelative
// Count the number of columns/rows which are relative -> countRelative
if (grid[i].isRelative()) {
- totalRelative += max<float>(grid[i].value(), 1);
+ totalRelative += max(grid[i].intValue(), 1);
countRelative++;
}
}
@@ -278,7 +278,7 @@
for (int i = 0; i < gridLen; ++i) {
if (grid[i].isRelative()) {
- gridLayout[i] = (max<float>(grid[i].value(), 1) * remainingRelative) / totalRelative;
+ gridLayout[i] = (max(grid[i].intValue(), 1) * remainingRelative) / totalRelative;
remainingLen -= gridLayout[i];
lastRelative = i;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes