mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021085 - Inflate the painted rect a bit to deal with rounding error. r=Cwiiis
This commit is contained in:
parent
1f7f22dbb7
commit
ab1b3da0d8
@ -237,6 +237,9 @@ SharedFrameMetricsHelper::AboutToCheckerboard(const FrameMetrics& aContentMetric
|
||||
CSSRect painted =
|
||||
(aContentMetrics.mCriticalDisplayPort.IsEmpty() ? aContentMetrics.mDisplayPort : aContentMetrics.mCriticalDisplayPort)
|
||||
+ aContentMetrics.GetScrollOffset();
|
||||
// Inflate painted by some small epsilon to deal with rounding
|
||||
// error. We should replace this with a FuzzyContains function.
|
||||
painted.Inflate(0.01f);
|
||||
CSSRect showing = CSSRect(aCompositorMetrics.GetScrollOffset(), aCompositorMetrics.CalculateBoundedCompositedSizeInCssPixels());
|
||||
return !painted.Contains(showing);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user