summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-09-08 16:42:06 -0400
committerKris Maglione <maglione.k@gmail.com>2011-09-08 16:42:06 -0400
commitde0ad598e5df1b683bdf7d9d256f9372416a6c32 (patch)
tree99d2635f4aad786b6de9668adb4bb7c4e5da8e82
parentc6035ce6741311b0ad1dc00ec118ef97767194fc (diff)
downloadpentadactyl-de0ad598e5df1b683bdf7d9d256f9372416a6c32.tar.gz
Fix rehash on FF6.
-rw-r--r--common/modules/dom.jsm9
-rw-r--r--common/modules/main.jsm10
2 files changed, 14 insertions, 5 deletions
diff --git a/common/modules/dom.jsm b/common/modules/dom.jsm
index 06864b77..f1601511 100644
--- a/common/modules/dom.jsm
+++ b/common/modules/dom.jsm
@@ -770,6 +770,15 @@ var DOM = Class("DOM", {
continue;
force = Math.round(isect.width - rect.width) || Math.round(isect.height - rect.height);
+ let vp = parent.viewport;
+ if (force)
+ util.dump(vp,
+ rect.left - vp.left,
+ rect.right - vp.right,
+ rect.top - vp.top,
+ rect.bottom - vp.bottom,
+ isect.width - rect.width, isect.height - rect.height,
+ parent[0]);
if (force)
break;
}
diff --git a/common/modules/main.jsm b/common/modules/main.jsm
index 65dcca7c..cbb2d30a 100644
--- a/common/modules/main.jsm
+++ b/common/modules/main.jsm
@@ -12,7 +12,7 @@ defineModule("main", {
require: ["config", "help", "highlight", "io", "overlay", "services", "util"]
}, this);
-const BASE = "resource://dactyl-content/";
+var BASE = "resource://dactyl-content/";
/**
* @class ModuleBase
@@ -56,10 +56,10 @@ var Modules = function Modules(window) {
* module constructor.
* @optional
* @param {Object} moduleInit The module initialization functions
- * for the new module. Each function is called as soon as the named module
- * has been initialized, but after the module itself. The constructors are
- * guaranteed to be called in the same order that the dependent modules
- * were initialized.
+ * for the new module. Each function is called as soon as the
+ * named module has been initialized. The constructors are
+ * guaranteed to be called in the same order that the dependent
+ * modules were initialized.
* @optional
*
* @returns {function} The constructor for the resulting module.