Title: [112068] branches/subpixellayout/Source/WebCore/rendering
Revision
112068
Author
le...@chromium.org
Date
2012-03-26 02:28:30 -0700 (Mon, 26 Mar 2012)

Log Message

Adding missing pixel snapping in RenderFieldSet and changing a toInt() call to an abstraction-friendly floorToInt().

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp (112067 => 112068)


--- branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp	2012-03-26 09:27:12 UTC (rev 112067)
+++ branches/subpixellayout/Source/WebCore/rendering/AutoTableLayout.cpp	2012-03-26 09:28:30 UTC (rev 112068)
@@ -491,7 +491,7 @@
 void AutoTableLayout::layout()
 {
     // table layout based on the values collected in the layout structure.
-    int tableLogicalWidth = m_table->logicalWidth().toInt() - m_table->bordersPaddingAndSpacingInRowDirection().toInt();
+    int tableLogicalWidth = floorToInt(m_table->logicalWidth()) - m_table->bordersPaddingAndSpacingInRowDirection().toInt();
     int available = tableLogicalWidth;
     size_t nEffCols = m_table->numEffCols();
 

Modified: branches/subpixellayout/Source/WebCore/rendering/RenderFieldset.cpp (112067 => 112068)


--- branches/subpixellayout/Source/WebCore/rendering/RenderFieldset.cpp	2012-03-26 09:27:12 UTC (rev 112067)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderFieldset.cpp	2012-03-26 09:28:30 UTC (rev 112068)
@@ -159,11 +159,11 @@
     if (style()->isHorizontalWritingMode()) {
         LayoutUnit clipTop = paintRect.y();
         LayoutUnit clipHeight = max(static_cast<LayoutUnit>(style()->borderTopWidth()), legend->height() - ((legend->height() - borderTop()) / 2));
-        graphicsContext->clipOut(IntRect(paintRect.x() + legend->x(), clipTop, legend->width(), clipHeight));
+        graphicsContext->clipOut(pixelSnappedIntRect(paintRect.x() + legend->x(), clipTop, legend->width(), clipHeight));
     } else {
         LayoutUnit clipLeft = paintRect.x();
         LayoutUnit clipWidth = max(static_cast<LayoutUnit>(style()->borderLeftWidth()), legend->width());
-        graphicsContext->clipOut(IntRect(clipLeft, paintRect.y() + legend->y(), clipWidth, legend->height()));
+        graphicsContext->clipOut(pixelSnappedIntRect(clipLeft, paintRect.y() + legend->y(), clipWidth, legend->height()));
     }
 
     paintBorder(paintInfo, paintRect, style());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to