⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107133 in webkit


Ignore:
Timestamp:
Feb 8, 2012, 2:17:43 PM (15 years ago)
Author:
leviw@chromium.org
Message:

Prevent painting rects that snap to zero width or height.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp

    r106970 r107133  
    296296bool RenderView::shouldRepaint(const LayoutRect& r) const
    297297{
    298     if (printing() || r.width() == 0 || r.height() == 0)
     298    IntRect repaintRect = pixelSnappedIntRect(r);
     299    if (printing() || repaintRect.width() == 0 || repaintRect.height() == 0)
    299300        return false;
    300301
Note: See TracChangeset for help on using the changeset viewer.