Backing out part of bug 599873 because it regresses bug 599220 [r=me]
authorMark Finkle <mfinkle@mozilla.com>
Thu, 30 Sep 2010 11:23:31 -0400
changeset 66753 134cac628aac87846f5d12f544f566246a8fc21e
parent 66752 b1fc2e7c62c3a7c7b7905d50fdf1355a72fc8546
child 66754 ea69b160002a36c71920af9122978f7038b9b2ef
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs599873, 599220
Backing out part of bug 599873 because it regresses bug 599220 [r=me]
mobile/chrome/content/bindings/browser.xml
--- a/mobile/chrome/content/bindings/browser.xml
+++ b/mobile/chrome/content/bindings/browser.xml
@@ -508,34 +508,27 @@
       </method>
 
       <!-- Scroll viewport by (x, y) device pixels. -->
       <method name="scrollBy">
         <parameter name="x"/>
         <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>
       </method>
 
       <!-- Scroll viewport to (x, y) offset of document in device pixels. -->
       <method name="scrollTo">
         <parameter name="x"/>
         <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>
       </method>
 
       <!-- Get position of viewport in device pixels. -->
       <method name="getPosition">
         <body>