Title: [103420] branches/subpixellayout/Source/WebCore/rendering/RenderBoxModelObject.cpp
Revision
103420
Author
le...@chromium.org
Date
2011-12-21 11:32:10 -0800 (Wed, 21 Dec 2011)

Log Message

Fixing a sub-pixel fillRect call with pixelSnappedIntRect

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/RenderBoxModelObject.cpp (103419 => 103420)


--- branches/subpixellayout/Source/WebCore/rendering/RenderBoxModelObject.cpp	2011-12-21 19:28:55 UTC (rev 103419)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderBoxModelObject.cpp	2011-12-21 19:32:10 UTC (rev 103420)
@@ -659,7 +659,7 @@
             RoundedRect border = getBackgroundRoundedRect(backgroundRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance), box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge);
             context->fillRoundedRect(border, bgColor, style()->colorSpace());
         } else
-            context->fillRect(rect, bgColor, style()->colorSpace());
+            context->fillRect(pixelSnappedIntRect(rect), bgColor, style()->colorSpace());
         
         return;
     }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to