Title: [107133] branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp
Revision
107133
Author
le...@chromium.org
Date
2012-02-08 14:17:43 -0800 (Wed, 08 Feb 2012)

Log Message

Prevent painting rects that snap to zero width or height.

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp (107132 => 107133)


--- branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp	2012-02-08 21:47:51 UTC (rev 107132)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp	2012-02-08 22:17:43 UTC (rev 107133)
@@ -295,7 +295,8 @@
 
 bool RenderView::shouldRepaint(const LayoutRect& r) const
 {
-    if (printing() || r.width() == 0 || r.height() == 0)
+    IntRect repaintRect = pixelSnappedIntRect(r);
+    if (printing() || repaintRect.width() == 0 || repaintRect.height() == 0)
         return false;
 
     if (!m_frameView)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to