Backing out part of bug 599873 because it regresses bug 599220 [r=me]

This commit is contained in:
Mark Finkle 2010-09-30 11:23:31 -04:00
parent 021cdc958a
commit 4fb0dedf31

View File

@ -513,10 +513,6 @@
<parameter name="y"/>
<body>
<![CDATA[
let position = this.getPosition();
x = Math.floor(Math.max(0, Math.min(this.contentDocumentWidth, x + position.x)));
y = Math.floor(Math.max(0, Math.min(this.contentDocumentHeight, y + position.y)));
this.contentWindow.scrollBy(x, y);
]]>
</body>
@ -528,9 +524,6 @@
<parameter name="y"/>
<body>
<![CDATA[
x = Math.floor(Math.max(0, Math.min(this.contentDocumentWidth, x)));
y = Math.floor(Math.max(0, Math.min(this.contentDocumentHeight, y)));
this.contentWindow.scrollTo(x, y);
]]>
</body>