Backout a17b6115cdd7 for causing reftest failures

This commit is contained in:
Matt Woodrow
2013-07-09 12:05:04 -04:00
parent da58862330
commit c0cbe6c60f
10 changed files with 48 additions and 48 deletions

View File

@@ -1579,9 +1579,15 @@ ContainerState::PopThebesLayerData()
colorLayer->SetBaseTransform(data->mLayer->GetBaseTransform());
colorLayer->SetPostScale(data->mLayer->GetPostXScale(), data->mLayer->GetPostYScale());
// Clip colorLayer to its visible region, since ColorLayers are
// allowed to paint outside the visible region. Here we rely on the
// fact that uniform display items fill rectangles; obviously the
// area to fill must contain the visible region, and because it's
// a rectangle, it must therefore contain the visible region's GetBounds.
// Note that the visible region is already clipped appropriately.
nsIntRect visibleRect = data->mVisibleRegion.GetBounds();
visibleRect.MoveBy(-GetTranslationForThebesLayer(data->mLayer));
colorLayer->SetBounds(visibleRect);
visibleRect.MoveBy(mParameters.mOffset);
colorLayer->SetClipRect(&visibleRect);
layer = colorLayer;
}