Bug 880578 - Fix updating of scroll position; r=BenWa

This commit is contained in:
Anthony Jones 2013-06-14 12:33:13 +12:00
parent 160b5efcba
commit f8ff1502e7

View File

@ -1037,6 +1037,10 @@ void AsyncPanZoomController::RequestContentRepaint() {
fabsf(oldDisplayPort.y - newDisplayPort.y) < EPSILON &&
fabsf(oldDisplayPort.width - newDisplayPort.width) < EPSILON &&
fabsf(oldDisplayPort.height - newDisplayPort.height) < EPSILON &&
fabsf(mLastPaintRequestMetrics.mScrollOffset.x -
mFrameMetrics.mScrollOffset.x) < EPSILON &&
fabsf(mLastPaintRequestMetrics.mScrollOffset.y -
mFrameMetrics.mScrollOffset.y) < EPSILON &&
mFrameMetrics.mResolution.width == mLastPaintRequestMetrics.mResolution.width) {
return;
}