mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916125. Clip scroll layer items to the scroll port so the resulting layers have the proper clip. r=roc
This commit is contained in:
parent
f38b7cf3b6
commit
93e4b6b2d2
@ -2366,6 +2366,13 @@ nsGfxScrollFrameInner::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
ScrollLayerWrapper wrapper(mOuter, mScrolledFrame);
|
||||
|
||||
if (usingDisplayport) {
|
||||
DisplayListClipState::AutoSaveRestore clipState(aBuilder);
|
||||
nsRect clip = mScrollPort + aBuilder->ToReferenceFrame(mOuter);
|
||||
if (mClipAllDescendants) {
|
||||
clipState.ClipContentDescendants(clip);
|
||||
} else {
|
||||
clipState.ClipContainingBlockDescendants(clip);
|
||||
}
|
||||
// Once a displayport is set, assume that scrolling needs to be fast
|
||||
// so create a layer with all the content inside. The compositor
|
||||
// process will be able to scroll the content asynchronously.
|
||||
|
Loading…
Reference in New Issue
Block a user