mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1031107 - Part 8: Set display ports on tiled scrollable layers. r=tn
This commit is contained in:
parent
d5035d8cda
commit
8a776bf27a
@ -1604,6 +1604,24 @@ ScrollFrameHelper::ScrollFrameHelper(nsContainerFrame* aOuter,
|
||||
}
|
||||
|
||||
EnsureImageVisPrefsCached();
|
||||
|
||||
#ifndef MOZ_WIDGET_ANDROID
|
||||
if (mScrollingActive &&
|
||||
gfxPrefs::LayersTilesEnabled() &&
|
||||
!gfxPrefs::AsyncPanZoomEnabled() &&
|
||||
mOuter->GetContent()) {
|
||||
// If we have tiling but no APZ, then set a 0-margin display port on
|
||||
// active scroll containers so that we paint by whole tile increments
|
||||
// when scrolling.
|
||||
nsLayoutUtils::SetDisplayPortMargins(mOuter->GetContent(),
|
||||
mOuter->PresContext()->PresShell(),
|
||||
LayerMargin(),
|
||||
gfxPrefs::LayersTileWidth(), gfxPrefs::LayersTileHeight(),
|
||||
0,
|
||||
nsLayoutUtils::RepaintMode::DoNotRepaint);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
ScrollFrameHelper::~ScrollFrameHelper()
|
||||
|
Loading…
Reference in New Issue
Block a user