mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1023506 - Don't fill the background color for overscrolled scrollinfo layers. r=mattwoodrow
This commit is contained in:
parent
e614389b45
commit
9a6406323d
@ -350,7 +350,9 @@ ContainerRender(ContainerT* aContainer,
|
||||
// with the background color by drawing a rectangle of the background color
|
||||
// over the entire composited area before drawing the container contents.
|
||||
if (AsyncPanZoomController* apzc = aContainer->GetAsyncPanZoomController()) {
|
||||
if (apzc->IsOverscrolled()) {
|
||||
// Make sure not to do this on a "scrollinfo" layer (one with an empty visible
|
||||
// region) because it's just a placeholder for APZ purposes.
|
||||
if (apzc->IsOverscrolled() && !aContainer->GetVisibleRegion().IsEmpty()) {
|
||||
gfxRGBA color = aContainer->GetBackgroundColor();
|
||||
// If the background is completely transparent, there's no point in
|
||||
// drawing anything for it. Hopefully the layers behind, if any, will
|
||||
|
Loading…
Reference in New Issue
Block a user