mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1018255 - Don't bother doing the computations in ApplyOverscrollEffect if we are not overscrolled. r=kats
--HG-- extra : source : 028af891515ee1093e889d20142f989cb19621b2
This commit is contained in:
parent
49f6fb288a
commit
aa74c31159
@ -1937,9 +1937,11 @@ bool AsyncPanZoomController::SampleContentTransformForFrame(const TimeStamp& aSa
|
||||
aScrollOffset = mFrameMetrics.GetScrollOffset() * mFrameMetrics.GetZoom();
|
||||
*aNewTransform = GetCurrentAsyncTransform();
|
||||
|
||||
// GetCurrentAsyncTransform() does not consider any overscroll we may have.
|
||||
// Adjust the transform to account for that.
|
||||
ApplyOverscrollEffect(aNewTransform);
|
||||
if (IsOverscrolled()) {
|
||||
// GetCurrentAsyncTransform() does not consider any overscroll we may have.
|
||||
// Adjust the transform to account for that.
|
||||
ApplyOverscrollEffect(aNewTransform);
|
||||
}
|
||||
|
||||
LogRendertraceRect(GetGuid(), "viewport", "red",
|
||||
CSSRect(mFrameMetrics.GetScrollOffset(),
|
||||
|
Loading…
Reference in New Issue
Block a user