mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1205630 - Translate a fixed background display item's clip rect correctly when setting it on the layer. r=mstange
This commit is contained in:
parent
4e967275c1
commit
527a800195
@ -3268,7 +3268,9 @@ void ContainerState::FinishPaintedLayerData(PaintedLayerData& aData, FindOpaqueB
|
||||
// its clip in ProcessDisplayItems() and saved it to set on the layer instead.
|
||||
// Set the clip on the layer now.
|
||||
if (data->mSingleItemFixedToViewport && data->mItemClip.HasClip()) {
|
||||
data->mLayer->SetClipRect(Some(ViewAs<ParentLayerPixel>(ScaleToNearestPixels(data->mItemClip.GetClipRect()))));
|
||||
nsIntRect layerClipRect = ScaleToNearestPixels(data->mItemClip.GetClipRect());
|
||||
layerClipRect.MoveBy(mParameters.mOffset);
|
||||
data->mLayer->SetClipRect(Some(ViewAs<ParentLayerPixel>(layerClipRect)));
|
||||
// There is only one item, so all of the clips are in common to all items.
|
||||
// data->mCommonClipCount will be zero because we removed the clip from
|
||||
// the display item. (It could also be -1 if we're inside an inactive
|
||||
|
Loading…
Reference in New Issue
Block a user