Commit d346a27b authored by dbeam@chromium.org's avatar dbeam@chromium.org

More s/body/documentElement/ as body.scroll{...} is deprecated.

R=arv@chromium.org
BUG=305742

Review URL: https://codereview.chromium.org/49903004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232966 0039d316-1c4b-4281-b951-d872f2087c98
parent bc5f116b
......@@ -118,10 +118,10 @@ cr.define('help', function() {
if (freeze) {
this.lastScrollTop = document.documentElement.scrollTop;
document.body.style.overflow = 'hidden';
window.scroll(document.body.scrollLeft, 0);
window.scroll(document.documentElement.scrollLeft, 0);
} else {
document.body.style.overflow = 'auto';
window.scroll(document.body.scrollLeft, this.lastScrollTop);
window.scroll(document.documentElement.scrollLeft, this.lastScrollTop);
}
},
......
......@@ -204,7 +204,7 @@ cr.define('options', function() {
var container = $('page-container');
var scrollTop = container.oldScrollTop || 0;
container.oldScrollTop = undefined;
window.scroll(document.body.scrollLeft, scrollTop);
window.scroll(document.documentElement.scrollLeft, scrollTop);
};
/**
......@@ -704,7 +704,7 @@ cr.define('options', function() {
e.style.right = OptionsPage.horizontalOffset + 'px';
} else {
e.style.left = OptionsPage.horizontalOffset -
document.body.scrollLeft + 'px';
document.documentElement.scrollLeft + 'px';
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment