Title: [108398] branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp
Revision
108398
Author
[email protected]
Date
2012-02-21 14:26:08 -0800 (Tue, 21 Feb 2012)

Log Message

Explicitly converting table's logical width, as well as borders, padding, spacing, etc. to integers before doing math with them to avoid truncating the width an extra pixel unnecessarily.

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp (108397 => 108398)


--- branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp	2012-02-21 22:21:51 UTC (rev 108397)
+++ branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp	2012-02-21 22:26:08 UTC (rev 108398)
@@ -491,7 +491,7 @@
 void AutoTableLayout::layout()
 {
     // table layout based on the values collected in the layout structure.
-    int tableLogicalWidth = m_table->logicalWidth() - m_table->bordersPaddingAndSpacingInRowDirection();
+    int tableLogicalWidth = m_table->logicalWidth().toInt() - m_table->bordersPaddingAndSpacingInRowDirection().toInt();
     int available = tableLogicalWidth;
     size_t nEffCols = m_table->numEffCols();
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to