Backout a17b6115cdd7 for causing reftest failures
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user