зеркало из https://github.com/mozilla/gecko-dev.git
Bug 777672 - Remove changes to dom/browser-element/ that are not related to bug 777672. r=me
This commit is contained in:
Родитель
4d286d96ea
Коммит
87b2ada545
|
@ -21,7 +21,7 @@ let whitelistedEvents = [
|
|||
];
|
||||
|
||||
function debug(msg) {
|
||||
dump("BrowserElementChild - " + msg + "\n");
|
||||
//dump("BrowserElementChild - " + msg + "\n");
|
||||
}
|
||||
|
||||
function sendAsyncMsg(msg, data) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче