Merge of iframe scrolling patch to tiles. r=stuart
authorBen Combee <combee@mozilla.com>
Fri, 07 Aug 2009 18:08:06 -0700
changeset 49642 4e2a735e6e805a0fd53793b6f00956381153913b
parent 49641 9363834b0f4c92874a78a41ca949296e8dd58d87
child 49643 335f91772feac03ebb9d24a306b1f5b42d072f48
push id15027
push useredward.lee@engineering.uiuc.edu
push dateThu, 12 Aug 2010 09:51:47 +0000
treeherderautoland@cdfff833edf9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstuart
Merge of iframe scrolling patch to tiles. r=stuart
toolkit/content/Geometry.jsm
--- a/toolkit/content/Geometry.jsm
+++ b/toolkit/content/Geometry.jsm
@@ -17,16 +17,17 @@
  *
  * The Initial Developer of the Original Code is
  * Mozilla Corporation.
  * Portions created by the Initial Developer are Copyright (C) 2009
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
  *   Roy Frostig <rfrostig@mozilla.com>
+ *   Ben Combee <bcombee@mozilla.com>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  * in which case the provisions of the GPL or the LGPL are applicable instead
  * of those above. If you wish to allow use of your version of this file only
  * under the terms of either the GPL or the LGPL, and not to allow others to
  * use your version of this file under the terms of the MPL, indicate your
@@ -51,18 +52,23 @@ let Util = {
     };
   },
 
   bindAll: function bindAll(instance) {
     let bind = Util.bind;
     for (let key in instance)
       if (instance[key] instanceof Function)
         instance[key] = bind(instance[key], instance);
+  },
+
+  dumpLn: function dumpLn() {
+    // like dump, but each arg is handled and there's an automatic newline
+    for (var i = 0; i < arguments.length; i++) { dump(arguments[i]); }
+    dump("\n");
   }
-
 };
 
 
 // -----------------------------------------------------------
 // Util.Rect is a simple data structure for representation of a rectangle supporting
 // many basic geometric operations.
 //
 
@@ -549,9 +555,8 @@ wsRect.prototype = {
     this.left *= xscl;
     this.right *= xscl;
     this.top *= yscl;
     this.bottom *= yscl;
 
     return this;
   }
 };
-