Bug 777672 - Remove changes to dom/browser-element/ that are not related to bug 777672. r=me

This commit is contained in:
Vivien Nicolas 2012-08-03 12:53:32 +02:00
parent ea040ad93b
commit b574989aa6
2 changed files with 2 additions and 11 deletions

View File

@ -21,7 +21,7 @@ let whitelistedEvents = [
];
function debug(msg) {
dump("BrowserElementChild - " + msg + "\n");
//dump("BrowserElementChild - " + msg + "\n");
}
function sendAsyncMsg(msg, data) {

View File

@ -112,13 +112,6 @@ const ContentPanning = {
},
getPannable: function cp_getPannable(node) {
debug('getPannable');
let scrollable = docShell.QueryInterface(Ci.nsIScrollable);
let canHaveHorizontal = {};
let canHaveVertical = {};
scrollable.getScrollbarVisibility(canHaveHorizontal, canHaveVertical);
debug('horizontal: ' + canHaveHorizontal.value + ' vertical: ' + canHaveVertical.value);
if (!(node instanceof Ci.nsIDOMHTMLElement) || node.tagName == 'HTML')
return [null, null];
@ -136,10 +129,8 @@ debug('horizontal: ' + canHaveHorizontal.value + ' vertical: ' + canHaveVertical
rect.width < node.scrollWidth));
let isScroll = (overflow.indexOf('scroll') != -1);
if (isScroll || isAuto) {
debug(node);
if (isScroll || isAuto)
return [node, this._generateCallback(node)];
}
node = node.parentNode;
}