bustage fix for bug 475997, r=tglek

This commit is contained in:
Mark Finkle 2009-01-30 13:13:06 -05:00
Родитель 44b4a404df
Коммит 63350481b6
1 изменённых файлов: 8 добавлений и 9 удалений

Просмотреть файл

@ -114,7 +114,6 @@ CanvasBrowser.prototype = {
viewportHandler: function(bounds, oldBounds) { viewportHandler: function(bounds, oldBounds) {
let pageBounds = bounds.clone(); let pageBounds = bounds.clone();
let visibleBounds = ws.viewingRect; let visibleBounds = ws.viewingRect;
visibleBounds = visibleBounds.intersect(bounds)
pageBounds.top = Math.floor(this._screenToPage(bounds.top)); pageBounds.top = Math.floor(this._screenToPage(bounds.top));
pageBounds.left = Math.floor(this._screenToPage(bounds.left)); pageBounds.left = Math.floor(this._screenToPage(bounds.left));
pageBounds.bottom = Math.ceil(this._screenToPage(bounds.bottom)); pageBounds.bottom = Math.ceil(this._screenToPage(bounds.bottom));
@ -125,7 +124,7 @@ CanvasBrowser.prototype = {
visibleBounds.left = Math.max(0, Math.floor(this._screenToPage(visibleBounds.left))); visibleBounds.left = Math.max(0, Math.floor(this._screenToPage(visibleBounds.left)));
visibleBounds.bottom = Math.ceil(this._screenToPage(visibleBounds.bottom)); visibleBounds.bottom = Math.ceil(this._screenToPage(visibleBounds.bottom));
visibleBounds.right = Math.ceil(this._screenToPage(visibleBounds.right)); visibleBounds.right = Math.ceil(this._screenToPage(visibleBounds.right));
this._visibleBounds = visibleBounds this._visibleBounds = visibleBounds;
let dx = this._screenX - bounds.x; let dx = this._screenX - bounds.x;
let dy = this._screenY - bounds.y; let dy = this._screenY - bounds.y;