Bug 612599 Gray lines when using content.scrollTo r=cjones a=blocking-fennec
authorBenjamin Stover <bstover@mozilla.com>
Fri, 07 Jan 2011 08:11:18 -0800
changeset 60124 05937e37d81de280dec6f6754a29ac6fb361911f
parent 60123 410656622bb54cda0b1aa3bf9da2bb2413e17e5c
child 60125 27071f97a8eb1784ef06520faadcb3312f878975
push id17873
push userbstover@mozilla.com
push dateFri, 07 Jan 2011 16:12:01 +0000
treeherdermozilla-central@05937e37d81d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones, blocking-fennec
bugs612599
milestone2.0b9pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 612599 Gray lines when using content.scrollTo r=cjones a=blocking-fennec
gfx/layers/ThebesLayerBuffer.cpp
--- a/gfx/layers/ThebesLayerBuffer.cpp
+++ b/gfx/layers/ThebesLayerBuffer.cpp
@@ -308,17 +308,17 @@ ThebesLayerBuffer::BeginPaint(ThebesLaye
 
   nsIntRegion invalidate;
   invalidate.Sub(aLayer->GetValidRegion(), destBufferRect);
   result.mRegionToInvalidate.Or(result.mRegionToInvalidate, invalidate);
 
   result.mContext = GetContextForQuadrantUpdate(drawBounds,
                                                 aXResolution, aYResolution);
 
-  gfxUtils::ClipToRegion(result.mContext, result.mRegionToDraw);
+  gfxUtils::ClipToRegionSnapped(result.mContext, result.mRegionToDraw);
   if (aContentType == gfxASurface::CONTENT_COLOR_ALPHA && !isClear) {
     result.mContext->SetOperator(gfxContext::OPERATOR_CLEAR);
     result.mContext->Paint();
     result.mContext->SetOperator(gfxContext::OPERATOR_OVER);
   }
   return result;
 }