From de93e571ec5fe8a15c5ce3ef19f5639f52eb3065 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Wed, 17 Oct 2012 10:23:26 -0700 Subject: [PATCH] Bug 801671 - Don't use cached bounds after scrolling, they use the previous scroll position. r=davidb --- accessible/src/jsat/Presenters.jsm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/accessible/src/jsat/Presenters.jsm b/accessible/src/jsat/Presenters.jsm index b037ce057706..465a51c32545 100644 --- a/accessible/src/jsat/Presenters.jsm +++ b/accessible/src/jsat/Presenters.jsm @@ -129,21 +129,23 @@ VisualPresenter.prototype = { BORDER_PADDING: 2, viewportChanged: function VisualPresenter_viewportChanged(aWindow) { - if (this._currentContext) + if (this._currentAccessible) { + let context = new PresenterContext(this._currentAccessible); return { type: this.type, details: { method: 'show', - bounds: this._currentContext.bounds, + bounds: context.bounds, padding: this.BORDER_PADDING } }; + } return null; }, pivotChanged: function VisualPresenter_pivotChanged(aContext, aReason) { - this._currentContext = aContext; + this._currentAccessible = aContext.accessible; if (!aContext.accessible) return {type: this.type, details: {method: 'hide'}};