mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 564991. Part 32: Fix assertion in BasicThebesLayer; it's entirely possible that we need to invalidate an area, but the actual visible region is empty so there's no context to draw to. r=cjones
This commit is contained in:
parent
78f7a6b002
commit
da8eac7e0e
@ -337,8 +337,9 @@ BasicThebesLayer::Paint(gfxContext* aContext,
|
||||
state.mRegionToInvalidate, aCallbackData);
|
||||
mValidRegion.Or(mValidRegion, state.mRegionToDraw);
|
||||
} else {
|
||||
NS_ASSERTION(state.mRegionToDraw.IsEmpty() &&
|
||||
state.mRegionToInvalidate.IsEmpty(),
|
||||
// It's possible that state.mRegionToInvalidate is nonempty here,
|
||||
// if we are shrinking the valid region to nothing.
|
||||
NS_ASSERTION(state.mRegionToDraw.IsEmpty(),
|
||||
"If we need to draw, we should have a context");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user