Merge after backing out e4690fcf6f7c.
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 14 Nov 2008 13:17:12 -0800
changeset 21699 5107f51b92aa2c19157e92e3ba8a61a4ac217e22
parent 21697 26eff4ebdfbff822b2ef96a565bdc52ffab92775 (current diff)
parent 21698 d0c342436fa89f4d72c4ff14e98115a640f52b4e (diff)
child 21700 4bfb610c88f672c03888b868534a29218ed45f90
push id3643
push userdholbert@mozilla.com
push dateFri, 14 Nov 2008 21:17:30 +0000
treeherdermozilla-central@5107f51b92aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1b2pre
Merge after backing out e4690fcf6f7c.
--- a/gfx/src/thebes/nsThebesImage.cpp
+++ b/gfx/src/thebes/nsThebesImage.cpp
@@ -630,22 +630,18 @@ nsThebesImage::Draw(gfxContext*        a
             // See bug 324698.  This is a workaround for EXTEND_PAD not being
             // implemented correctly on linux in the X server.
             //
             // Set the filter to CAIRO_FILTER_FAST --- otherwise,
             // pixman's sampling will sample transparency for the outside edges and we'll
             // get blurry edges.  CAIRO_EXTEND_PAD would also work here, if
             // available
             //
-            // This effectively disables smooth upscaling for images. So only set the
-            // FAST filter on upscaling. We must NEVER use FAST on downscaling otherwise
-            // very ugly images will result all over chrome and the web.
-            // xx is x scaling, yy is y scaling. Lower number is higher scale.
-            if (userSpaceToImageSpace.xx < 1.0 || userSpaceToImageSpace.yy < 1.0)
-              pattern->SetFilter(0);
+            // This effectively disables smooth upscaling for images.
+            pattern->SetFilter(0);
             break;
   
         case gfxASurface::SurfaceTypeQuartz:
         case gfxASurface::SurfaceTypeQuartzImage:
             // Do nothing, Mac seems to be OK. Really?
             break;
 
         default: