Index: chrome/browser/resources/pdf/viewport.js |
diff --git a/chrome/browser/resources/pdf/viewport.js b/chrome/browser/resources/pdf/viewport.js |
index 981555f3b64a1fa283fc92b211f80e25f6460ad5..29b86ceb27de5392a8df010176fe06f5a16caf2f 100644 |
--- a/chrome/browser/resources/pdf/viewport.js |
+++ b/chrome/browser/resources/pdf/viewport.js |
@@ -24,15 +24,13 @@ function getIntersectionHeight(rect1, rect2) { |
* @param {Function} beforeZoomCallback is run before a change in zoom |
* @param {Function} afterZoomCallback is run after a change in zoom |
* @param {number} scrollbarWidth the width of scrollbars on the page |
- * @param {number} yPos the offset of the viewport from the top of the window |
*/ |
function Viewport(window, |
sizer, |
viewportChangedCallback, |
beforeZoomCallback, |
afterZoomCallback, |
- scrollbarWidth, |
- yPos) { |
+ scrollbarWidth) { |
this.window_ = window; |
this.sizer_ = sizer; |
this.viewportChangedCallback_ = viewportChangedCallback; |
@@ -44,7 +42,6 @@ function Viewport(window, |
this.pageDimensions_ = []; |
this.scrollbarWidth_ = scrollbarWidth; |
this.fittingType_ = Viewport.FittingType.NONE; |
- this.yPos = yPos; |
window.addEventListener('scroll', this.updateViewport_.bind(this)); |
window.addEventListener('resize', this.resize_.bind(this)); |
@@ -140,7 +137,7 @@ Viewport.prototype = { |
this.sizer_.style.width = |
this.documentDimensions_.width * this.zoom_ + 'px'; |
this.sizer_.style.height = |
- this.documentDimensions_.height * this.zoom_ + this.yPos + 'px'; |
+ this.documentDimensions_.height * this.zoom_ + 'px'; |
} |
}, |